This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Possible Bug with "n" Flag of .section Directive
- To: binutils at sourceware dot cygnus dot com
- Subject: Possible Bug with "n" Flag of .section Directive
- From: Tracy dot Kuhrt at microchip dot com
- Date: Wed, 21 Feb 2001 08:49:50 -0700
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