This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Newbie: How to support new processor architecture


Stefan Heinzmann <stefan_heinzmann@yahoo.com> writes:

> > The COFF format will not support weak symbols.  Either switch to ELF
> > or abandon using weak symbols.
> 
> But, if I do an objdump on the output file from gas, it shows that some
> symbols are declared weak. Since gas output is already COFF, I assumed
> that COFF supported weak symbols -- at least the information makes it
> into the COFF file somehow. What else is needed?

Yes, the GNU tools do generally support weak symbols in COFF as an
extension to standard COFF.  The storage class is set to C_WEAKEXT
which is 127.

I do not know why it is not working for you.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]