https://sourceware.org/bugzilla/show_bug.cgi?id=34185
Bug ID: 34185
Summary: failed to merge target specific data of file
tmpdir/dummy.o
Product: binutils
Version: 2.47 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
Target: riscv
Many linker tests failed for riscv due to
[hjl@gnu-tgl-3 ld]$ readelf -a tmpdir/dummy.o
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: REL (Relocatable file)
Machine: RISC-V
Version: 0x1
Entry point address: 0x0
Start of program headers: 0 (bytes into file)
Start of section headers: 512 (bytes into file)
Flags: 0x4, double-float ABI
Size of this header: 64 (bytes)
Size of program headers: 0 (bytes)
Number of program headers: 0
Size of section headers: 64 (bytes)
Number of section headers: 8
Section header string table index: 7
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 00000040
0000000000000004 0000000000000000 AX 0 0 4
[ 2] .data PROGBITS 0000000000000000 00000044
0000000000000000 0000000000000000 WA 0 0 1
[ 3] .bss NOBITS 0000000000000000 00000044
0000000000000000 0000000000000000 WA 0 0 1
[ 4] .riscv.attributes RISCV_ATTRIBUTE 0000000000000000 00000044
000000000000005f 0000000000000000 0 0 1
[ 5] .symtab SYMTAB 0000000000000000 000000a8
00000000000000c0 0000000000000018 6 8 8
[ 6] .strtab STRTAB 0000000000000000 00000168
0000000000000054 0000000000000000 0 0 1
[ 7] .shstrtab STRTAB 0000000000000000 000001bc
000000000000003e 0000000000000000 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
L (link order), O (extra OS processing required), G (group), T (TLS),
C (compressed), x (unknown), o (OS specific), E (exclude),
D (mbind), p (processor specific)
There are no section groups in this file.
There are no program headers in this file.
There is no dynamic section in this file.
There are no relocations in this file.
The decoding of unwind sections for machine type RISC-V is not currently
supported.
Symbol table '.symtab' contains 8 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 SECTION LOCAL DEFAULT 1 .text
2: 0000000000000000 0 SECTION LOCAL DEFAULT 2 .data
3: 0000000000000000 0 SECTION LOCAL DEFAULT 3 .bss
4: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 $d
5: 0000000000000001 0 NOTYPE LOCAL DEFAULT 1 $d
6: 0000000000000002 0 NOTYPE LOCAL DEFAULT 1
$xrv64i2p1_m2p0_[...]
7: 0000000000000000 0 SECTION LOCAL DEFAULT 4 .riscv.attributes
No version information found in this file.
There is no GOT section in this file.
There is no PLT section in this file.
Attribute Section: riscv
File Attributes
Tag_RISCV_arch:
"rv64i2p1_m2p0_a2p1_f2p2_d2p2_zicsr2p0_zifencei2p0_zmmul1p0_zaamo1p0_zalrsc1p0"
[hjl@gnu-tgl-3 ld]$
Why aren't attributes in an empty file ignored?
--
You are receiving this mail because:
You are on the CC list for the bug.