This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: RFC: Assign regions to orphan sections


On Thu, 25 Mar 2010, Daniel Jacobowitz wrote:

> On Thu, Mar 25, 2010 at 10:14:57PM +0000, Joseph S. Myers wrote:
> > Moving this out of the long C6X submission thread and into a more relevant 
> > thread:
> > 
> > The new orphan-region test fails for tic6x-elf and it appears this is 
> > generic to ports with 1-byte page size rather than specific to this 
> > particular port; it failed in the same way for h8300-elf which I tried as 
> > another such target.  You get
> > 
> > There are 1 program headers, starting at offset 52
> > 
> > Program Headers:
> >   Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
> >   LOAD           0x000000 0x3fffffac 0x3fffffac 0x00060 0x00060 R E 0x1
> > 
> > and this looks odd but I don't know if it's a bug in the code (and if
> > so, where) or in the testcase or if the testcase should be XFAILed for
> > such targets.
> 
> What's the rest of the readelf -lS output?  I'd like to know what it's
> placed at 0x3fffffac.  I only expected things to start at 0x40000000.

This is the full output from the readelf -S -l --wide command from the 
logs:

There are 8 section headers, starting at offset 0xa0:

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .text             PROGBITS        40000000 000054 000004 00  AX  0   0  4
  [ 2] .rodata           PROGBITS        40000004 000058 000004 00   A  0   0  4
  [ 3] .moredata         PROGBITS        40000008 00005c 000004 00   A  0   0  1
  [ 4] .notdata          PROGBITS        00000000 000060 000004 00      0   0  1
  [ 5] .shstrtab         STRTAB          00000000 000064 00003c 00      0   0  1
  [ 6] .symtab           SYMTAB          00000000 0001e0 000050 10      7   5  4
  [ 7] .strtab           STRTAB          00000000 000230 000001 00      0   0  1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings)
  I (info), L (link order), G (group), x (unknown)
  O (extra OS processing required) o (OS specific), p (processor specific)

Elf file type is EXEC (Executable file)
Entry point 0x40000000
There are 1 program headers, starting at offset 52

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x000000 0x3fffffac 0x3fffffac 0x00060 0x00060 R E 0x1

 Section to Segment mapping:
  Segment Sections...
   00     .text .rodata .moredata 


-- 
Joseph S. Myers
joseph@codesourcery.com


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