This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Trouble with empty sections
- From: Daniel Jacobowitz <drow at false dot org>
- To: binutils at sourceware dot org
- Date: Tue, 7 Nov 2006 09:52:11 -0500
- Subject: Trouble with empty sections
I've been updating the ARM linker tests for global changes in linker
output, and I stumbled across this:
regexp_diff match failure
regexp "^ .. ..: ........ 0 NOTYPE GLOBAL DEFAULT 12 _stack$"
line " 14 2: 00080000 0 NOTYPE GLOBAL DEFAULT 13 _stack"
FAIL: Mixed ARM/Thumb dynamic application
[12] .bss NOBITS 00010368 008368 000004 00 WA 0 0 4
[13] .ARM.attributes ARM_ATTRIBUTES 00000000 008368 000010 00 0 0 1
It's moved to a non-allocated section.
.stack 0x80000 :
{
_stack = .;
*(.stack)
}
Honestly, I can't follow the discussions that have been had on this
subject. Maybe this was intended; if so please let me know and I'll
update the test. But moving to a non-ALLOC section is decidedly odd.
--
Daniel Jacobowitz
CodeSourcery