bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/27228] New: mips: gas produces strange section on gcc LTO outpu


From: xry111 at mengyan1223 dot wang
Subject: [Bug gas/27228] New: mips: gas produces strange section on gcc LTO outputs
Date: Sat, 23 Jan 2021 12:17:35 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27228

            Bug ID: 27228
           Summary: mips: gas produces strange section on gcc LTO outputs
           Product: binutils
           Version: 2.35.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: xry111 at mengyan1223 dot wang
  Target Milestone: ---

We've discussed this in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97787 and
Richard suggests to report it as a gas bug.

$ cat t.s
        .text
foo:
        .reloc  1f,R_MIPS_JALR,.LTHUNK5.lto_priv.0
1:      nop

$ mips64el-unknown-linux-gnuabi64-as -64 t.s
$ mips64el-unknown-linux-gnuabi64-readelf -s a.out

Symbol table '.symtab' contains 10 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000000000     0 SECTION LOCAL  DEFAULT    1 
     2: 0000000000000000     0 SECTION LOCAL  DEFAULT    3 
     3: 0000000000000000     0 SECTION LOCAL  DEFAULT    4 
     4: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT    1 foo
     5: 0000000000000000     0 SECTION LOCAL  DEFAULT    5 
     6: 0000000000000000     0 SECTION LOCAL  DEFAULT    6 
     7: 0000000000000000     0 SECTION LOCAL  DEFAULT    7 
     8: 0000000000000000     0 SECTION LOCAL  DEFAULT    8 
     9: 0000000000000000     0 SECTION LOCAL  DEFAULT  UND 
$ mips64el-unknown-linux-gnuabi64-objdump -t a.out

a.out:     file format elf64-tradlittlemips

SYMBOL TABLE:
0000000000000000 l    d  .text  0000000000000000 .text
0000000000000000 l    d  .data  0000000000000000 .data
0000000000000000 l    d  .bss   0000000000000000 .bss
0000000000000000 l       .text  0000000000000000 foo
0000000000000000 l    d  .MIPS.options  0000000000000000 .MIPS.options
0000000000000000 l    d  .MIPS.abiflags 0000000000000000 .MIPS.abiflags
0000000000000000 l    d  .pdr   0000000000000000 .pdr
0000000000000000 l    d  .gnu.attributes        0000000000000000
.gnu.attributes
0000000000000000 l    d  *UND*  0000000000000000 

The last "unnamed section" does not make any sense to us.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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