Displaying 2 results from an estimated 2 matches for "jmp_slot".
2016 Feb 08
2
[LLD] Incorrect comparision of pointers to function defined in DSO
...or a symbol
> which has a PLT entry but is not defined. Typically the symbol will be
> marked as undefined, but with a non-zero value–the value will be set to the
> address of the PLT entry. When the dynamic linker is searching for the value
> of a symbol to use for a reloc other than a JMP_SLOT reloc, if it finds such
> a specially marked symbol, it will use the non-zero value. This will ensure
> that all references to the symbol which are not function calls will use the
> same value. To make this work, the compiler and assembler must make sure
> that any reference to a functi...
2016 Feb 08
3
[LLD] Incorrect comparision of pointers to function defined in DSO
Hi,
It looks like I have found a bug in LLD. Suppose DSO defines a global
variable 'data' and initializes it by the address of function
'set_data' defined in the same DSO. If an executable file (linked by
LLD) gets address of the '&set_data' function and compares it with a
value stored in the 'data' variable it gets different result. If the
executable is linked