bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/20882] GNU ld discards sections required by relocations in .debu


From: hjl.tools at gmail dot com
Subject: [Bug ld/20882] GNU ld discards sections required by relocations in .debug_info with --gc-sections
Date: Tue, 13 Mar 2018 17:13:45 +0000

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

--- Comment #17 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 10892
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10892&action=edit
A patch

I got

address@hidden rhbz-1543912]$ make
mkdir build
/usr/gcc-8.0.1-x32/bin/gcc -I ./src -flto -B./ -O2 -g -c src/bootchart.c -o
build/bootchart.o
/usr/gcc-8.0.1-x32/bin/gcc -I ./src -flto -B./ -O2 -g -c src/log.c -o
build/log.o
/usr/gcc-8.0.1-x32/bin/gcc -flto -B./ -g -Wl,--gc-sections
-Wl,--print-gc-sections \
  build/bootchart.o build/log.o \
          -o build/systemd-bootchart
./ld: removing unused section '.rodata.cst4' in file '/lib/../lib64/crt1.o'
./ld: removing unused section '.data' in file '/lib/../lib64/crt1.o'
./ld: removing unused section '.data' in file
'/usr/gcc-8.0.1-x32/lib/gcc/x86_64-pc-linux-gnu/8.0.1/crtbegin.o'
/usr/lib/rpm/debugedit build/systemd-bootchart
address@hidden rhbz-1543912]$ 

I am trying to find a small test.

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