This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Trouble with empty sections
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sourceware dot org
- Date: Tue, 7 Nov 2006 07:33:03 -0800
- Subject: Re: Trouble with empty sections
- References: <20061107145211.GA15428@nevyn.them.org>
On Tue, Nov 07, 2006 at 09:52:11AM -0500, Daniel Jacobowitz wrote:
> 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.
There are
[13] .ARM.attributes ARM_ATTRIBUTES 00000000 008368 000010 00 0 0 1
It isn't an SHF_ALLOC section.
H.J.