Static linking on 64-bit PowerPC ELFv2
Alan Modra
amodra@gmail.com
Fri Aug 11 10:50:00 GMT 2017
More information about the Binutils mailing list
Fri Aug 11 10:50:00 GMT 2017
- Previous message (by thread): Static linking on 64-bit PowerPC ELFv2
- Next message (by thread): Static linking on 64-bit PowerPC ELFv2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Aug 11, 2017 at 11:48:50AM +0200, Sebastian Huber wrote: > Hello, > > I recently added 64-bit PowerPC for RTEMS using the ELFv2 ABI. On RTEMS, the > applications are statically linked with the operating system. I am now a bit > surprised be a linker behaviour. I have a big library containing a network > stack with many features. On other targets the linker just picks individual > objects from the library to resolve the dependencies. However, on the 64-bit > PowerPC the linker seems to pull in the complete library somehow. I see in > the linker map file lines like this: > > ./libbsd.a(utils.c.18.o) (print_string) You're only showing part of the complete line (which is no doubt split). What you show is the reference, the line above it would be the included object. > The applications has no direct or indirect references to print_string, > however, the utils.c.18.o is still included in the link process. This in > turn leads to unresolved references. Is this the expected behaviour on > 64-bit PowerPC? I don't know any reason why you should see differences between PowerPC64 and other targets regarding the extraction of objects from libraries. Are you compiling with different options, perhaps with debugging turned on, for PowerPC64? If you compare with another architecture, find the first difference in included object and then compare the referencing object. Then figure out why the referencing object is different. -- Alan Modra Australia Development Lab, IBM
- Previous message (by thread): Static linking on 64-bit PowerPC ELFv2
- Next message (by thread): Static linking on 64-bit PowerPC ELFv2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list