public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* combining object files and managing relocatable symbols
@ 2006-09-20 20:16 Erik Leunissen
  2006-09-20 20:41 ` H. J. Lu
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Erik Leunissen @ 2006-09-20 20:16 UTC (permalink / raw)
  To: binutils

I've got two ELF object files; let's call them A.o and B.o.

A.o refers to a symbol X, which is defined in B.o

What I want to accomplish is to create a new relocatable object file C.o 
from these object files such that:
1. the reference to X in A.o is resolved
2. symbol X in C.o is unavailable for further linking against. I guess 
this means reducing it to a local symbol.

Doing a partial link does step 1 ( ld -r -nostdlib -o C.o A.o B.o ).
However, I did not find a way to do step 2.

Any suggestions?

Thanks in advance,

Erik Leunissen

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-09-21 15:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-20 20:16 combining object files and managing relocatable symbols Erik Leunissen
2006-09-20 20:41 ` H. J. Lu
2006-09-20 20:59   ` Erik Leunissen
2006-09-20 21:25 ` vamsi krishna
2006-09-20 22:19   ` Andreas Schwab
2006-09-20 22:52 ` Erik Leunissen
2006-09-20 22:57   ` H. J. Lu
2006-09-21  9:46     ` Erik Leunissen
2006-09-21 15:03       ` H. J. Lu
2006-09-22  0:21         ` Erik Leunissen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).