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: libbfd/gas questions plus a suggestion (comments wanted)


Jonathan Wilson <jonwil@tpgi.com.au> writes:

> Basicly, since I cant find anything otherwise, I want to add a new
> feature to gas.

I recommend more reading and more experimenting.

> I want to add a feature that says "emit this symbol with a segment
> value of -2 (aka IMAGE_SYM_ABSOLUTE).

Symbols are absolute if they are not section labels.

> Firstly, what bit of the code (I presume its in BFD somewhere) outputs
> the symbol table for win32 i386-pe COFF object files?

coff_write_symbols() in coffgen.c.  Each individual symbol is written
by coff_write_symbol() in the same file.

> And secondly, what is the best way to tell that bit of code that a
> symbol should be emitted as "absolute".
> My guess is something like:
> .absolute __tls_array

Just assign a value to the symbol using = or `.set'.

Ian


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