bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/3777] ld -q , (Host PC/OS: Free-BSD, Target Machine: powerpc)


From: rewex at hanmail dot net
Subject: [Bug ld/3777] ld -q , (Host PC/OS: Free-BSD, Target Machine: powerpc)
Date: 21 Dec 2006 08:13:44 -0000

------- Additional Comments From rewex at hanmail dot net  2006-12-21 08:13 
-------
I`m reporter. Sorry, I can`t report well.... 

This is ELF file ( readelf -r test )
-----------------------------------------------------------------------
ELF Header:
  Magic:   7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, big endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           PowerPC
  Version:                           0x1
  Entry point address:               0x20000000
  Start of program headers:          52 (bytes into file)
  Start of section headers:          8256 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         2
  Size of section headers:           40 (bytes)
  Number of section headers:         10
  Section header string table index: 7
 
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        20000000 001000 000030 00  AX  0   0  4
  [ 2] .rela.text        RELA            00000000 002000 000018 0c      8   1  4
  [ 3] .data             PROGBITS        20001000 002000 000000 00  WA  0   0  1
  [ 4] .sdata            PROGBITS        20001000 002000 000000 00  WA  0   0  4
  [ 5] .sbss             NOBITS          20001000 002000 000004 00  WA  0   0  4
  [ 6] .bss              NOBITS          20001004 002000 000000 00  WA  0   0  1
  [ 7] .shstrtab         STRTAB          00000000 002000 00003e 00      0   0  1
  [ 8] .symtab           SYMTAB          00000000 0021d0 000180 10      9  11  4
  [ 9] .strtab           STRTAB          00000000 002350 0000b5 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)
 
Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x001000 0x20000000 0x20000000 0x00030 0x00030 R E 0x1000
  LOAD           0x002000 0x20001000 0x20001000 0x00000 0x00004 RW  0x1000

 Section to Segment mapping:
  Segment Sections...
   00     .text
   01     .sbss
                                                                               
                                                                       
There is no dynamic segment in this file.
                                                                               
                                                                       
Relocation section '.rela.text' at offset 0x2000 contains 2 entries:
  Offset    Info  Type            Symbol's Value  Symbol's Name          Addend
  002e7379  6d746162 unrecognised: 62      bad symbol index: 006d7461
  72746162  2e7368 R_PPC_EMB_NADDR16_HI  bad symbol index: 00002e73
                                                                               
                                                                       
There are no unwind sections in this file.
                                                                               
                                                                       
Symbol table '.symtab' contains 24 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND
     1: 20000000     0 SECTION LOCAL  DEFAULT    1
     2: 00000000     0 SECTION LOCAL  DEFAULT    2
     3: 20001000     0 SECTION LOCAL  DEFAULT    3
     4: 20001000     0 SECTION LOCAL  DEFAULT    4
     5: 20001000     0 SECTION LOCAL  DEFAULT    5
     6: 20001004     0 SECTION LOCAL  DEFAULT    6
     7: 00000000     0 SECTION LOCAL  DEFAULT    7
     8: 00000000     0 SECTION LOCAL  DEFAULT    8
     9: 00000000     0 SECTION LOCAL  DEFAULT    9
    10: 00000000     0 FILE    LOCAL  DEFAULT  ABS /u9/te/include/tk/ppc/asm.h
    11: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
/u9/te/include/tk/ppc/ppcdefs.h
    12: 00000000     0 FILE    LOCAL  DEFAULT  ABS /u9/te/include/tk/ppc/asm.h
    13: 00000000     0 FILE    LOCAL  DEFAULT  ABS /u9/te/include/machine.h
    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS <command line>
    15: 00000000     0 FILE    LOCAL  DEFAULT  ABS <built-in>
    16: 20000000     0 NOTYPE  LOCAL  DEFAULT    1 _start
    17: 20001000     4 OBJECT  GLOBAL DEFAULT    5 g
    18: 20009000     0 OBJECT  GLOBAL DEFAULT    4 _SDA_BASE_
    19: 20001000     0 NOTYPE  GLOBAL DEFAULT    5 __bss_start
    20: 20001000     0 NOTYPE  GLOBAL DEFAULT    4 _edata
    21: 20001004     0 NOTYPE  GLOBAL DEFAULT    6 _end
    22: 20001000     0 NOTYPE  GLOBAL DEFAULT    3 __data_start
    23: 20008028     0 OBJECT  GLOBAL DEFAULT    1 _SDA2_BASE_
                                                                               
                                                                       
No version information found in this file.
(END)

-----------------------------------------------------------------------


This is binary file of test 
-----------------------------------------------------------------------
File name:test
 
000000  7F 45 4C 46 01 02 01 00  00 00 00 00 00 00 00 00   .ELF............
000010  00 02 00 14 00 00 00 01  20 00 00 00 00 00 00 34   ........ ......4
000020  00 00 20 40 00 00 00 00  00 34 00 20 00 02 00 28   .. @.....4. ...(
000030  00 0A 00 07 00 00 00 01  00 00 10 00 20 00 00 00   ............ ...
000040  20 00 00 00 00 00 00 30  00 00 00 30 00 00 00 05    ......0...0....
000050  00 00 10 00 00 00 00 01  00 00 20 00 20 00 10 00   .......... . ...
000060  20 00 10 00 00 00 00 00  00 00 00 04 00 00 00 06    ...............
000070  00 00 10 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
000080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
        ...  *** 0 byte repeats from 000080 to 000FFF ***
001000  94 21 FF D0 93 E1 00 2C  7C 3F 0B 78 90 7F 00 08   .!.....,|?.x....
001010  90 9F 00 0C 38 00 00 00  90 1F 00 10 3D 20 20 00   ....8.......=  .
001020  38 00 00 01 90 09 10 00  00 00 00 00 00 00 00 00   8...............
001030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
        ...  *** 0 byte repeats from 001030 to 001FFF ***
002000  00 2E 73 79 6D 74 61 62  00 2E 73 74 72 74 61 62   ..symtab..strtab
002010  00 2E 73 68 73 74 72 74  61 62 00 2E 72 65 6C 61   ..shstrtab..rela
002020  2E 74 65 78 74 00 2E 64  61 74 61 00 2E 73 64 61   .text..data..sda
002030  74 61 00 2E 73 62 73 73  00 2E 62 73 73 00 00 00   ta..sbss..bss...
002040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
        ...  *** 0 byte repeats from 002040 to 00205F ***
002060  00 00 00 00 00 00 00 00  00 00 00 20 00 00 00 01   ........... ....
002070  00 00 00 06 20 00 00 00  00 00 10 00 00 00 00 30   .... ..........0
002080  00 00 00 00 00 00 00 00  00 00 00 04 00 00 00 00   ................
002090  00 00 00 1B 00 00 00 04  00 00 00 00 00 00 00 00   ................
0020A0  00 00 20 00 00 00 00 18  00 00 00 08 00 00 00 01   .. .............
0020B0  00 00 00 04 00 00 00 0C  00 00 00 26 00 00 00 01   ...........&....
0020C0  00 00 00 03 20 00 10 00  00 00 20 00 00 00 00 00   .... ..... .....
0020D0  00 00 00 00 00 00 00 00  00 00 00 01 00 00 00 00   ................
0020E0  00 00 00 2C 00 00 00 01  00 00 00 03 20 00 10 00   ...,........ ...
0020F0  00 00 20 00 00 00 00 00  00 00 00 00 00 00 00 00   .. .............
002100  00 00 00 04 00 00 00 00  00 00 00 33 00 00 00 08   ...........3....
002110  00 00 00 03 20 00 10 00  00 00 20 00 00 00 00 04   .... ..... .....
002120  00 00 00 00 00 00 00 00  00 00 00 04 00 00 00 00   ................
002130  00 00 00 39 00 00 00 08  00 00 00 03 20 00 10 04   ...9........ ...
002140  00 00 20 00 00 00 00 00  00 00 00 00 00 00 00 00   .. .............
002150  00 00 00 01 00 00 00 00  00 00 00 11 00 00 00 03   ................
002160  00 00 00 00 00 00 00 00  00 00 20 00 00 00 00 3E   .......... ....>
002170  00 00 00 00 00 00 00 00  00 00 00 01 00 00 00 00   ................
002180  00 00 00 01 00 00 00 02  00 00 00 00 00 00 00 00   ................
002190  00 00 21 D0 00 00 01 80  00 00 00 09 00 00 00 11   ..!.............
0021A0  00 00 00 04 00 00 00 10  00 00 00 09 00 00 00 03   ................
0021B0  00 00 00 00 00 00 00 00  00 00 23 50 00 00 00 B5   ..........#P....
0021C0  00 00 00 00 00 00 00 00  00 00 00 01 00 00 00 00   ................
0021D0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
0021E0  00 00 00 00 20 00 00 00  00 00 00 00 03 00 00 01   .... ...........
0021F0  00 00 00 00 00 00 00 00  00 00 00 00 03 00 00 02   ................
002200  00 00 00 00 20 00 10 00  00 00 00 00 03 00 00 03   .... ...........
002210  00 00 00 00 20 00 10 00  00 00 00 00 03 00 00 04   .... ...........
002220  00 00 00 00 20 00 10 00  00 00 00 00 03 00 00 05   .... ...........
002230  00 00 00 00 20 00 10 04  00 00 00 00 03 00 00 06   .... ...........
002240  00 00 00 00 00 00 00 00  00 00 00 00 03 00 00 07   ................
002250  00 00 00 00 00 00 00 00  00 00 00 00 03 00 00 08   ................
002260  00 00 00 00 00 00 00 00  00 00 00 00 03 00 00 09   ................
002270  00 00 00 01 00 00 00 00  00 00 00 00 04 00 FF F1   ................
002280  00 00 00 1D 00 00 00 00  00 00 00 00 04 00 FF F1   ................
002290  00 00 00 01 00 00 00 00  00 00 00 00 04 00 FF F1   ................
0022A0  00 00 00 3D 00 00 00 00  00 00 00 00 04 00 FF F1   ...=............
0022B0  00 00 00 56 00 00 00 00  00 00 00 00 04 00 FF F1   ...V............
0022C0  00 00 00 65 00 00 00 00  00 00 00 00 04 00 FF F1   ...e............
0022D0  00 00 00 70 20 00 00 00  00 00 00 00 00 00 00 01   ...p ...........
0022E0  00 00 00 77 20 00 10 00  00 00 00 04 11 00 00 05   ...w ...........
0022F0  00 00 00 79 20 00 90 00  00 00 00 00 11 00 00 04   ...y ...........
002300  00 00 00 84 20 00 10 00  00 00 00 00 10 00 00 05   .... ...........
002310  00 00 00 90 20 00 10 00  00 00 00 00 10 00 00 04   .... ...........
002320  00 00 00 97 20 00 10 04  00 00 00 00 10 00 00 06   .... ...........
002330  00 00 00 9C 20 00 10 00  00 00 00 00 10 00 00 03   .... ...........
002340  00 00 00 A9 20 00 80 28  00 00 00 00 11 00 00 01   .... ..(........
002350  00 2F 75 39 2F 74 65 2F  69 6E 63 6C 75 64 65 2F   ./u9/te/include/
002360  74 6B 2F 70 70 63 2F 61  73 6D 2E 68 00 2F 75 39   tk/ppc/asm.h./u9
002370  2F 74 65 2F 69 6E 63 6C  75 64 65 2F 74 6B 2F 70   /te/include/tk/p
002380  70 63 2F 70 70 63 64 65  66 73 2E 68 00 2F 75 39   pc/ppcdefs.h./u9
002390  2F 74 65 2F 69 6E 63 6C  75 64 65 2F 6D 61 63 68   /te/include/mach
0023A0  69 6E 65 2E 68 00 3C 63  6F 6D 6D 61 6E 64 20 6C   ine.h.<command l
0023B0  69 6E 65 3E 00 3C 62 75  69 6C 74 2D 69 6E 3E 00   ine>.<built-in>.
0023C0  5F 73 74 61 72 74 00 67  00 5F 53 44 41 5F 42 41   _start.g._SDA_BA
0023D0  53 45 5F 00 5F 5F 62 73  73 5F 73 74 61 72 74 00   SE_.__bss_start.
0023E0  5F 65 64 61 74 61 00 5F  65 6E 64 00 5F 5F 64 61   _edata._end.__da
0023F0  74 61 5F 73 74 61 72 74  00 5F 53 44 41 32 5F 42   ta_start._SDA2_B
002400  41 53 45 5F 00                                     ASE_.
-----------------------------------------------------------------------

-- 


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

------- 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]