[llvm-dev] [LLD] Is there any reason to add _GLOBAL_OFFSET_TABLE_ to .dynsym?

Rafael EspĂ­ndola via llvm-dev llvm-dev at lists.llvm.org
Wed Feb 10 19:56:34 PST 2016


How is it used, btw?

To me it looked to be a gas hack that became visible. R_386_GOTPC and
similar should be able to just use an r_sym of 0, no?

But in lld we have to handle current files with _GLOBAL_OFFSET_TABLE_,
and yes, no objections do dropping it from any table.

Cheers,
Rafael


On 10 February 2016 at 08:22, Joerg Sonnenberger via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> On Mon, Feb 08, 2016 at 05:22:03PM +0300, Simon Atanasyan via llvm-dev wrote:
>> When LLD builds a shared library for x86_64 it puts
>> _GLOBAL_OFFSET_TABLE_ to the both .symtab and .dynsym and defines it
>> as a GLOBAL symbol.
>
> It shouldn't put it into .dynsym. It can be useful in .symtab for
> debugging purposes.
>
> Joerg
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list