https://sourceware.org/bugzilla/show_bug.cgi?id=27590
Bug ID: 27590
Summary: `.gnu.debuglto_.debug_macro' referenced in section
`.gnu.debuglto_.debug_macro' of X defined in discarded
section
Product: binutils
Version: 2.37 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: mliska at suse dot cz
Target Milestone: ---
The issue was originally reported here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99618
$ cat 1.i
;
# 1 "/usr/include/bits/wordsize.h" 1
#define __WORDSIZE 64
#define __WORDSIZE_TIME64_COMPAT32 1
$ gcc -flto -ggdb3 -c -fPIC -g 1.i && cp 1.o 2.o && gcc -r -o libperf-in.o
[12].o -fuse-ld=bfd
`.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro'
of /tmp/ccnBoXGI.debug.temp.o: defined in discarded section
`.gnu.debuglto_.debug_macro[wm4.wordsize.h.1.b68ef8235bd466c01307f942f7f51e04]'
of /tmp/ccnBoXGI.debug.temp.o
collect2: error: ld returned 1 exit status
While ld.gold is fine:
$ gcc -flto -ggdb3 -c -fPIC -g 1.i && cp 1.o 2.o && gcc -r -o libperf-in.o
[12].o -fuse-ld=gold
--
You are receiving this mail because:
You are on the CC list for the bug.