[i386] Add explicit ""aw", @nobits" declarations to stack sections
authorMichael Brown <mcb30@etherboot.org>
Sun, 15 Feb 2009 10:02:26 +0000 (10:02 +0000)
committerMichael Brown <mcb30@etherboot.org>
Sun, 15 Feb 2009 10:02:26 +0000 (10:02 +0000)
commitce2aa66d39344fa5d6097607d6344ebaf5dabcf4
treebd84097e33b0079743dd5aa290b674ecc4fc4c1c
parent8ae1cac0502c2a4d946f7bafa15a944bb1ef48a2
[i386] Add explicit ""aw", @nobits" declarations to stack sections

As reported by Stefan, commit 13d09e6 ("[i386] Simplify linker script
and standardise linker-defined symbol names") breaks gdb, readelf and
associated utilities.

This is caused by the .stack section overwriting a block in the middle
of the .debug_info section (despite being included in the
.bss.textdata section in the output file, which apparently has the
correct attributes for a .bss section).

Fixed by adding explicit flags and type to the stack section
declaration.
src/arch/i386/core/stack.S
src/arch/i386/core/stack16.S