2.12 branch: Sparc visibility failures

Daniel Jacobowitz drow@mvista.com
Sun Feb 17 19:22:00 GMT 2002


On Sun, Feb 17, 2002 at 12:35:10PM +0100, Jakub Jelinek wrote:
> On Sat, Feb 16, 2002 at 10:56:20PM -0500, Daniel Jacobowitz wrote:
> > Is that really working around what the test is supposed to be testing,
> > or is my interpretation correct?  Jakub?
> 
> Richard already answered this.
> 
> > (Interestingly, the S-records failure Christian and Jakub were
> > discussing does not show up on my Sparc at all.  Did someone
> > stealth-fix this while I wasn't looking?)
> 
> I'd guess this is because of different compilers used, the sections have
> different sizes depending on compiler and some sizes trigger it while others
> don't.
> Could you perhaps post for the S-records with constructors test:
> a) objdump -x sr{1,2}.sr
> b) readelf -a sr1
> or even better just sr3.o so that I can compare?
> Thanks.

Included and attached.

dan@auric:~/binutils/obj-sparc/ld/tmpdir% ../../binutils/objdump -x sr1.sr sr2.sr

sr1.sr:     file format srec
sr1.sr
architecture: UNKNOWN!, flags 0x00000000:

start address 0x0000000000001000

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 .sec1         000001f8  0000000000001000  0000000000001000  00000026  2**0
                  CONTENTS, ALLOC, LOAD
  1 .sec2         0000000c  00000000000111f8  00000000000111f8  000005d6  2**0
                  CONTENTS, ALLOC, LOAD
../../binutils/objdump: sr1.sr: no symbols

sr2.sr:     file format srec
sr2.sr
architecture: UNKNOWN!, flags 0x00000000:

start address 0x0000000000001000

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 .sec1         000001f8  0000000000001000  0000000000001000  00000026  2**0
                  CONTENTS, ALLOC, LOAD
  1 .sec2         0000000c  00000000000111f8  00000000000111f8  000005d6  2**0
                  CONTENTS, ALLOC, LOAD
../../binutils/objdump: sr2.sr: no symbols



dan@auric:~/binutils/obj-sparc/ld/tmpdir% ../../binutils/readelf -a sr1
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:                           Sparc
  Version:                           0x1
  Entry point address:               0x1000
  Start of program headers:          52 (bytes into file)
  Start of section headers:          8884 (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:         14
  Section header string table index: 11

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        00001000 001000 0001d8 00  AX  0   0  4
  [ 2] .rodata           PROGBITS        000011d8 0011d8 000020 00   A  0   0  8
  [ 3] .data             PROGBITS        000111f8 0011f8 000004 00  WA  0   0  4
  [ 4] .ctors            PROGBITS        000111fc 0011fc 000004 00  WA  0   0  1
  [ 5] .dtors            PROGBITS        00011200 001200 000004 00  WA  0   0  1
  [ 6] .bss              NOBITS          00011204 001204 00005c 00  WA  0   0  4
  [ 7] .stab             PROGBITS        00000000 001204 0007f8 0c      8   0  4
  [ 8] .stabstr          STRTAB          00000000 0019fc 000813 00      0   0  1
  [ 9] .comment          PROGBITS        00000000 00220f 00002f 00      0   0  1
  [10] .note             NOTE            00000000 00223e 000014 00      0   0  1
  [11] .shstrtab         STRTAB          00000000 002252 000060 00      0   0  1
  [12] .symtab           SYMTAB          00000000 0024e4 0002a0 10     13  15  4
  [13] .strtab           STRTAB          00000000 002784 00015e 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           0x000000 0x00000000 0x00000000 0x011f8 0x011f8 R E 0x10000
  LOAD           0x0011f8 0x000111f8 0x000111f8 0x0000c 0x00068 RW  0x10000

 Section to Segment mapping:
  Segment Sections...
   00     .text .rodata
   01     .data .ctors .dtors .bss
Symbol table '.symtab' contains 42 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND
     1: 00001000     0 SECTION LOCAL  DEFAULT    1
     2: 000011d8     0 SECTION LOCAL  DEFAULT    2
     3: 000111f8     0 SECTION LOCAL  DEFAULT    3
     4: 000111fc     0 SECTION LOCAL  DEFAULT    4
     5: 00011200     0 SECTION LOCAL  DEFAULT    5
     6: 00011204     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 SECTION LOCAL  DEFAULT   10
    11: 00000000     0 SECTION LOCAL  DEFAULT   11
    12: 00000000     0 SECTION LOCAL  DEFAULT   12
    13: 00000000     0 SECTION LOCAL  DEFAULT   13
    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS sr3.cc
    15: 00011204    84 OBJECT  LOCAL  DEFAULT    6 static_foo
    16: 00001158    72 FUNC    LOCAL  DEFAULT    1 __static_initialization_a
    17: 000011a0    28 FUNC    LOCAL  DEFAULT    1 _GLOBAL_.I.main
    18: 000011bc    28 FUNC    LOCAL  DEFAULT    1 _GLOBAL_.D.main
    19: 000011d8     0 NOTYPE  LOCAL  DEFAULT    1 Letext
    20: 00000000     0 NOTYPE  LOCAL  DEFAULT  ABS *ABS*
    21: 00001040     8 FUNC    GLOBAL DEFAULT    1 __main
    22: 00001090    24 FUNC    GLOBAL DEFAULT    1 __3Foo
    23: 0000112c    44 FUNC    GLOBAL DEFAULT    1 _._3Foo
    24: 00001060     8 FUNC    GLOBAL DEFAULT    1 __rethrow
    25: 00001078     8 FUNC    GLOBAL DEFAULT    1 __get_eh_context
    26: 00001058     8 FUNC    GLOBAL DEFAULT    1 __throw
    27: 000010a8    24 FUNC    GLOBAL DEFAULT    1 __3FooPc
    28: 0000102c    20 FUNC    GLOBAL DEFAULT    1 terminate__Fv
    29: 000010c0    64 FUNC    GLOBAL DEFAULT    1 __3FooRC3Foo
    30: 00001080    16 FUNC    GLOBAL DEFAULT    1 init_foo__3Foo
    31: 000111f8     4 OBJECT  GLOBAL DEFAULT    3 _3Foo.foos
    32: 00011204     0 OBJECT  GLOBAL DEFAULT  ABS __bss_start
    33: 00001000    44 FUNC    GLOBAL DEFAULT    1 main
    34: 00011258     4 OBJECT  GLOBAL DEFAULT    6 __eh_pc
    35: 00011204     0 OBJECT  GLOBAL DEFAULT  ABS _edata
    36: 00011260     0 OBJECT  GLOBAL DEFAULT  ABS _end
    37: 00001070     8 FUNC    GLOBAL DEFAULT    1 __get_dynamic_handler_cha
    38: 00001100    44 FUNC    GLOBAL DEFAULT    1 __as__3FooRC3Foo
    39: 00001048     8 FUNC    GLOBAL DEFAULT    1 __builtin_delete
    40: 00001068     8 FUNC    GLOBAL DEFAULT    1 __terminate
    41: 00001050     8 FUNC    GLOBAL DEFAULT    1 __builtin_new

No version information found in this file.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sr3.o
Type: application/x-object
Size: 7172 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20020217/db9ab5c1/attachment.bin>


More information about the Binutils mailing list