This is the mail archive of the binutils@sourceware.cygnus.com 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]

Partial linking only for some symbols? Now?


   Hi.

   I'm trying to improve the use of binutils, particularily the linker, on
Amiga PowerUp systems. This is PowerPC system using ELF object files and
the SYSV.4 ABI.

   The only small problem is that programs are relocated as they are loaded
into memory. At the same time, symbol references due to system calls are
resolved. Thus -r must be passed to the linker to create relocatable files.
The only problem with doing so is that unresolved symbols (not referring to
system calls) are not detected until the program is run. That causes
problems for autoconf scripts and is a bit annoying in general.

   What I'm looking for is a way of using -r, but get ld to complain about
unresolved references that don't refer to a specified set of symbols (which
in this case are the system calls). Reading the manual didn't give me clues
as to how this can be done (although I won't claim that I understood the
description of all the options). Is it possible to do without modifying ld?

Regards,

/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻTŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\
| Rask Ingemann Lambertsen       | E-mail: mailto:rask@kampsax.k-net.dk  |
| Registered Phase5 developer    | WWW: http://www.gbar.dtu.dk/~c948374/ |
| A4000, 866 kkeys/s (RC5-64)    | "ThrustMe" on XPilot, ARCnet and IRC  |
|        If it jams, force it. If it breaks, it needed replacing.        |


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