This is the mail archive of the binutils@sourceware.org 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] |
This patch adds support for the _TLS_MODULE_BASE_ symbol, fixing a test failure when compiling the tests with -O2. * symtab.cc (sized_finalize_symbol): Add check for TLS symbol. * x86_64.cc (Target_x86_64::define_tls_base_symbol): New function. (Target_x86_64::tls_base_symbol_defined_): New field. (Target_x86_64::Scan::local): Define _TLS_MODULE_BASE_ symbol. (Target_x86_64::Scan::global): Likewise. I had a bit of trouble deciding where to define the symbol -- Target::do_finalize_sections() seemed like the best place, but the symbol table is unavailable there, and I didn't deem it worth the interface change to put it there. Instead, gold will define the symbol the first time it sees one of the TLSDESC relocations. OK? -cary
Attachment:
tlsdesc-patch-2.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |