bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/5866] LD Does not Set GP Size of Archive Modules


From: hjl dot tools at gmail dot com
Subject: [Bug ld/5866] LD Does not Set GP Size of Archive Modules
Date: 7 Mar 2008 16:53:26 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2008-03-07 
16:53 -------
(In reply to comment #12)
> Could you please e-mail me "good" and "bad"?  I wonder if PPC is similar to 
> MIPS
> in using small data sections.

"good" and "bad" are identical:

bash-3.2$ readelf -Ss good
There are 7 section headers, starting at offset 0x88:

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .data             PROGBITS        10010054 000054 000008 00  WA  0   0  1
  [ 2] .sbss             NOBITS          1001005c 00005c 000008 00  WA  0   0  4
  [ 3] .bss              NOBITS          10010068 00005c 000020 00  WA  0   0  8
  [ 4] .shstrtab         STRTAB          00000000 00005c 00002c 00      0   0  1
  [ 5] .symtab           SYMTAB          00000000 0001a0 0000b0 10      6   4  4
  [ 6] .strtab           STRTAB          00000000 000250 000025 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)

Symbol table '.symtab' contains 11 entries:
   Num:    Value  Size Type    Bind   Vis      Ndx Name
     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 10010054     0 SECTION LOCAL  DEFAULT    1 
     2: 1001005c     0 SECTION LOCAL  DEFAULT    2 
     3: 10010068     0 SECTION LOCAL  DEFAULT    3 
     4: 10010078    15 OBJECT  GLOBAL DEFAULT    3 ef
     5: 10010068    15 OBJECT  GLOBAL DEFAULT    3 df
     6: 10010060     4 OBJECT  GLOBAL DEFAULT    2 e4
     7: 1001005c     0 NOTYPE  GLOBAL DEFAULT  ABS __bss_start
     8: 1001005c     4 OBJECT  GLOBAL DEFAULT    2 d4
     9: 1001005c     0 NOTYPE  GLOBAL DEFAULT  ABS _edata
    10: 10010088     0 NOTYPE  GLOBAL DEFAULT  ABS _end
bash-3.2$

ef is in .bss since its size, 15, > 8. e4 is in .sbss since its size, 4,
<= 8.

-- 


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

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