Re: Range lists, zero-length functions, linker gc

2020-06-02 Thread Alan Modra via Elfutils-devel
e statements for function foo emitted to .debug_line.foo and for bar to .debug_line.bar, trusting that the linker will combine these sections in order to create an output .debug_line section. If foo code is excluded then .debug_line.foo info will also be dropped if section groups are used. -- Alan Modra Australia Development Lab, IBM

Re: entries in PT_DYNAMIC section refer to the correct address at runtime?

2017-09-15 Thread Alan Modra
On Fri, Sep 15, 2017 at 02:57:36PM +0800, Yubin Ruan wrote: > 2017-09-14 18:25 GMT+08:00 Alan Modra : > > DT_ entries that specify addresses will need to be offset by the base > > address. > > Will base address be automatically adjusted by the dynamic linker if > it

Re: entries in PT_DYNAMIC section refer to the correct address at runtime?

2017-09-14 Thread Alan Modra
le and a executable file. But, as stated in the ELF spec, > `p_vaddr` might not be correct for a shared object (because it is > required to be PIC). So, if that `p_vaddr` is not correct, will those > entries in PT_DYNAMIC be correct? DT_ entries that specify addresses will need to be offset by the base address. -- Alan Modra Australia Development Lab, IBM