|
From: Thorsten O. <ad...@th...> - 2017-11-07 22:07:24
|
On Montag, 6. November 2017 00:11:12 CET Miro Kropáček wrote:
> That's precisely the problem -- they should be but aren't.
Seems to be an assembler problem. When i compile a simple test program here
with the native gcc, i get:
~ $ nm bla.o
U do_nothing
0000000000000034 T main
0000000000000000 T test
0000000000000000 b x
When i compile the same program with the cross-compiler, i get:
$ m68k-atari-mint-nm bla.o
00000014 t .L2
0000000a t .L3
0000000a t .LBB2
00000010 t .LBE2
00000000 t .LFBB1
00000024 t .LFBB2
00000024 t .Lscope1
00000032 t .Lscope2
00000000 t .Ltext0
U ___main
U _do_nothing
00000024 T _main
00000000 T _test
00000034 b _x
So the native assembler seems to already omit those symbols from the object
file. And m68k-atari-mint-strip does indeed not remove them (also not the one
from binutils-2.29). So both seems to need fixing.
>Formerly I used '-x' instead of it and that was stripping too much.
Yes, that will strip all local symbols, even the ones from static functions.
Although i think the Hatari debugger can not cope very well with those, at
least i get lots of warnings when the same static name is used in more than
one place.
|