This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Possible Bug with "n" Flag of .section Directive


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]