bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/1467] Orphaned section is put in the odd place


From: hjl at lucon dot org
Subject: [Bug ld/1467] Orphaned section is put in the odd place
Date: 12 Oct 2005 18:08:28 -0000

------- Additional Comments From hjl at lucon dot org  2005-10-12 18:08 -------
An updated patch is posted at

http://sourceware.org/ml/binutils/2005-10/msg00157.html

Now I got

address@hidden orphan-1]$ make
as   -o foo.o foo.s
./ld -o foo -T ld.x foo.o
readelf -Sl foo
There are 9 section headers, starting at offset 0x100058:

Section Headers:
  [Nr] Name              Type             Address           Offset
       Size              EntSize          Flags  Link  Info  Align
  [ 0]                   NULL             0000000000000000  00000000
       0000000000000000  0000000000000000           0     0     0
  [ 1] .text             PROGBITS         0000000000000000  00100000
       0000000000000004  0000000000000000  AX       0     0     4
  [ 2] .notbad           PROGBITS         0000000000000004  00100004
       0000000000000004  0000000000000000   A       0     0     1
  [ 3] .data             PROGBITS         0000000000000008  00100008
       0000000000000004  0000000000000000  WA       0     0     4
  [ 4] .note             NOTE             000000000000000c  0010000c
       0000000000000004  0000000000000000   A       0     0     1
  [ 5] .note.bar         NOTE             0000000000000010  00100010
       0000000000000004  0000000000000000   A       0     0     1
  [ 6] .shstrtab         STRTAB           0000000000000000  00100014
       000000000000003f  0000000000000000           0     0     1
  [ 7] .symtab           SYMTAB           0000000000000000  00100298
       00000000000000d8  0000000000000018           8     9     8
  [ 8] .strtab           STRTAB           0000000000000000  00100370
       0000000000000001  0000000000000000           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 0x0
There are 3 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  LOAD           0x0000000000100000 0x0000000000000000 0x0000000000000000
                 0x0000000000000014 0x0000000000000014  RWE    100000
  NOTE           0x000000000010000c 0x000000000000000c 0x000000000000000c
                 0x0000000000000004 0x0000000000000004  R      1
  NOTE           0x0000000000100010 0x0000000000000010 0x0000000000000010
                 0x0000000000000004 0x0000000000000004  R      1

 Section to Segment mapping:
  Segment Sections...
   00     .text .notbad .data .note .note.bar
   01     .note
   02     .note.bar


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=1467

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]