This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]