bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/12524] Linking with --format=binary discards non-static global v


From: morgon.kanter at gmail dot com
Subject: [Bug ld/12524] Linking with --format=binary discards non-static global variables
Date: Tue, 1 Mar 2011 01:08:15 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12524

--- Comment #3 from morgon.kanter at gmail dot com 2011-03-01 01:08:08 UTC ---
Yeah, that's what I meant. I've included a linker script to run so that sort of
mistake isn't made and the output is easily readable with objdump. Both gcc and
clang work correctly when you have:
------
int global __attribute__ ((section (".bss")));
------

But not simply:
------
int global;
------

The instructions emitted in the bad case are the same as in the first post
here. Link with:

ld -N -S -T test.ld -o test test.o

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]