Dynamic object or not...

Paulo J. Matos pocmatos@gmail.com
Tue Nov 2 12:20:00 GMT 2010


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



More information about the Binutils mailing list