GNU ld --wrap limitations
chrisj at rtems.org
Thu Jan 17 07:14:42 UTC 2019
On 16/1/19 12:10 pm, Chris Johns wrote:
> On 15/1/19 5:54 pm, Sebastian Huber wrote:
>> You need an undefined reference to a symbol. References inside a translation
>> unit are apparently not undefined references.
> Does DWARF give us any better insight and the information needed?
My work to load archives via libdl seems to indicate there has to a relocation
record because separate text and data requires each function is placed in a
separate section and loading the section means the linker allocate the address
which the compiler cannot guess. The reloc record must point to the symbol which
means we should be able to redirect it. Something to consider.
More information about the devel