[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/23880] New: Gold can't handle .gnu.build.attributes section wi
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gold/23880] New: Gold can't handle .gnu.build.attributes section with relocations |
Date: |
Mon, 12 Nov 2018 16:17:52 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23880
Bug ID: 23880
Summary: Gold can't handle .gnu.build.attributes section with
relocations
Product: binutils
Version: 2.32 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: hjl.tools at gmail dot com
CC: ian at airs dot com
Target Milestone: ---
address@hidden testsuite]$ `echo g++ -W -Wall -Wstack-usage=262144 -Werror
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2
-fno-use-linker-plugin -o gc_comdat_test | sed -e 's/\([^ ]*\)\(.*\)/\1
-Bgcctestdir\/\2/' -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'`
-Wl,--gc-sections gc_comdat_test_1.o gc_comdat_test_2.o
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crti.o(.gnu.build.attributes+0x14):
error: relocation refers to local symbol "" [1], which is defined in a
discarded section
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crti.o(.gnu.build.attributes+0x1c):
error: relocation refers to local symbol "" [1], which is defined in a
discarded section
/usr/lib/gcc/x86_64-redhat-linux/8/crtend.o(.gnu.build.attributes+0x14): error:
relocation refers to local symbol "" [2], which is defined in a discarded
section
/usr/lib/gcc/x86_64-redhat-linux/8/crtend.o(.gnu.build.attributes+0x1c): error:
relocation refers to local symbol "" [2], which is defined in a discarded
section
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crtn.o(.gnu.build.attributes+0x14):
error: relocation refers to local symbol "" [1], which is defined in a
discarded section
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crtn.o(.gnu.build.attributes+0x1c):
error: relocation refers to local symbol "" [1], which is defined in a
discarded section
collect2: error: ld returned 1 exit status
address@hidden testsuite]$ readelf -r
/usr/lib/gcc/x86_64-redhat-linux/8/../../../../lib64/crti.o
Relocation section '.rela.init' at offset 0x290 contains 1 entry:
Offset Info Type Sym. Value Sym. Name +
Addend
00000000000b 00090000002a R_X86_64_REX_GOTP 0000000000000000 __gmon_start__ -
4
Relocation section '.rela.gnu.build.attributes' at offset 0x2a8 contains 6
entries:
Offset Info Type Sym. Value Sym. Name +
Addend
000000000014 000100000001 R_X86_64_64 0000000000000000 .text + 0
00000000001c 000100000001 R_X86_64_64 0000000000000000 .text + 0
000000000038 000200000001 R_X86_64_64 0000000000000000 .init + 0
000000000040 000200000001 R_X86_64_64 0000000000000000 .init + 16
00000000005c 000300000001 R_X86_64_64 0000000000000000 .fini + 0
000000000064 000300000001 R_X86_64_64 0000000000000000 .fini + 8
address@hidden testsuite]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/23880] New: Gold can't handle .gnu.build.attributes section with relocations,
hjl.tools at gmail dot com <=