[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error: Flag --keep-global-symbol doesnt work ??
From: |
Heiko_Elger |
Subject: |
Error: Flag --keep-global-symbol doesnt work ?? |
Date: |
Tue, 15 Oct 2002 17:50:51 +0200 |
Hello,
I want to use the -G (--keep-global-symbol, --keep-global-symbols) and I think
it doens work.
I tried with version 2.12.90 (cygwin version).
---- snip: test.c --------------
int global_i;
int f_global(void)
{
return 1;
}
--------end nip -------------
gcc -g -O0 -c test.c -o test.o
nm test.o
00000000 b .bss
00000000 d .data
00000000 N .stab
00000000 N .stabstr
00000000 t .text
00000000 t ___gnu_compiled_c
00000000 T _f_global
00000010 C _global_i
00000000 t gcc2_compiled.
the commands: objcopy -G _f_global -G _global_i test.o test.new.o
nm test.new.o
have the same output as with test.o.
00000000 b .bss
00000000 d .data
00000000 N .stab
00000000 N .stabstr
00000000 t .text
00000000 t ___gnu_compiled_c
00000000 T _f_global
00000010 C _global_i
00000000 t gcc2_compiled.
Perhaps its a problem of nm.
I tried to link test.o with another object which have references to f_global and
global_i with no errors.
So I think that it will not work!
Can you please give me a hint?
Mit freundlichen Gruessen
best regards
Heiko Elger
********************
ARBURG GmbH + Co
Heiko Elger
- Softwareentwicklung - / - Research and Development -
Arthur-Hehl-Strasse
D-72290 Lossburg
Tel.: +49 (0) 7446 33-3659
Fax.: +49 (0) 7446 33-3365
mailto:address@hidden
http://www.arburg.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Error: Flag --keep-global-symbol doesnt work ??,
Heiko_Elger <=