Possible Bug with "n" Flag of .section Directive
Tracy.Kuhrt@microchip.com
Tracy.Kuhrt@microchip.com
Wed Feb 21 07:51:00 GMT 2001
GNU assembler 2.10.1
Copyright 2000 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `sparc-sun-coff'.
Given the following .section directive:
.section foo_n, "n"
The objdump output gives:
foo_n.o: file format coff-sparc
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000000 00000000 00000000 00000000 2**3
ALLOC, LOAD, CODE
1 .data 00000000 00000000 00000000 00000000 2**3
ALLOC, LOAD, DATA
2 .bss 00000000 00000000 00000000 00000000 2**3
ALLOC
3 foo_n 00000000 00000000 00000000 00000000 2**3
ALLOC, LOAD
The documentation states that the "n" flag means that the section is not
loaded. The assembler appears to be setting the section's flags correctly
in the object file, but when objdump gets ahold of it, it changes the
flags to be ALLOC, LOAD. It appears that this is happening in the
function styp_to_sec_flags in coffgen.c. Is this a bug?
Tracy
More information about the Binutils
mailing list