This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Dynamic object or not...
Alan Modra <amodra@gmail.com> writes:
>
> No. Many dynamic objects have both a normal and a dynamic symbol
> table. There is no reason why they cannot have both types of
> relocation too. eg.
>
Of course, it makes sense. Thanks for the example!
> $ cat hello.c
> #include <stdio.h>
> int main (void) { printf ("Hello!\n"); return 0; }
> $ gcc -o hello -O2 -Wl,-emit-relocs hello.c
> $ readelf -a --wide hello | less
--
PMatos