This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
How can I change a global symbol to local?
- From: ShiYi Ma <shiyi at synopsys dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 27 Nov 2002 17:57:39 +0800
- Subject: How can I change a global symbol to local?
- Organization: Avanti+Synopsys
Hi all :
Is there any method to change a global symbol to local in an
static library?
My platform is RedHat7.2. Using gcc 3.2 and ld 2.11.90.0.8.
Now I should link 2 static libraries to one binary and all
process should not use shared library. In the 2
libraries there are few symbols shareing the same name. So ld will show
warning "multiple definition". It looks
like very hard to strip one given name symbol from one static library.
Also strip symbol will affect the binary's
debug. So my goal is just changing one symbol from global to local. Is
there any possibility of implementing it
without any platform or tools update?
Thanks all very much. Any feedback is welcome.
Best Regards
ShiYi Ma
--
Milkyway R&D
ShiYi_Ma
Software Engineer
Synopsys Shanghai
Tel: +86-21-62837026*545