1 msgSortir, se distraire, se cultiver autour du Leman
1 msgWhich gcc tar file to be used for SGI Altix 350?
1 msgcan I force linking to older libstdc++?
1 msggcc linker error
6 msgSymbols which were not used, still in binary
5 msgmmx/sse builtins

discard a weak symbol in object file
\ Wolfgang Haidinger (28 Jun 2006)
. \ Ian Lance Taylor (28 Jun 2006)

5 msgerror occured when cross compiling gcc
6 msgGcc 3.4.6 Build error
5 msgAddress of label which is defined within an asm...
3 msgTemplate parameters problem
2 msg-mcpu=v9 -mvis error on Solaris 8/SPARC with gc...
4 msgcurrent subversion (rev 115032) compiling issues
3 msgquestion about gcc assembly
3 msgQn regarding building an application of smalles...
4 msgSTL, hash_map is sorted !!
3 msgProblem with private copy constructor
2 msgc-parser.y
12 msg'Free as in Freedom'
3 msgHow can I remove articles posted under my name?
Subject:Re: discard a weak symbol in object file
Group:Gcc-help
From:Ian Lance Taylor
Date:28 Jun 2006


Wolfgang Haidinger <Wolfgang.Haidinger> writes:

> I tired to remove a local symbol in an .o file by the use of:
> arm-elf-objcopy -N <symbol-name> infile.o outfile.o
>
> This works fine as long as the symbol is global (not weak nor local).
> Unfortunately objcopy provides just the conversion of symbols into weak or
> local, but no option to convert into global.
>
> Has anyone an idea how I can get rid of an unwanted symbol in an object
> file, or how I can change it to be global?

I don't know whether there is a way, but I do know that the place to
ask is not here, but at binutils; see
http://sourceware.org/binutils/

Ian


© 2004-2008 readlist.com