[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/24873] New: ld.bfd fails if -lm is included only once within --s
From: |
dilyan.palauzov at aegee dot org |
Subject: |
[Bug ld/24873] New: ld.bfd fails if -lm is included only once within --start-group … --end-group |
Date: |
Fri, 02 Aug 2019 15:28:54 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24873
Bug ID: 24873
Summary: ld.bfd fails if -lm is included only once within
--start-group … --end-group
Product: binutils
Version: 2.33 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: dilyan.palauzov at aegee dot org
Target Milestone: ---
With ld.bfd 2.32.51.20190802, as discussed at linking with
LINK_ARGS = -Wl,--no-undefined -Wl,--as-needed -Wl,--start-group
libinput.so.10.13.0 liblibinput-util.a libquirks.a /usr/local/lib/libmtdev.so
/usr/x86_64-linux-gnu/libudev.so /usr/local/lib/libevdev.so -lm -lrt
/usr/local/lib/libwacom.so /usr/local/lib/libcheck.a -ldl -lm
/lib64/libsystemd.so -Wl,--end-group
'-Wl,-rpath,$$ORIGIN/:/usr/x86_64-linux-gnu'
-Wl,-rpath-link,/src/wayland/libinput-1.13.4/build-0.49/:/usr/x86_64-linux-gnu
thus with two -lm within --start-group … --end-group does work, while linking
with
LINK_ARGS = -Wl,--no-undefined -Wl,--as-needed -Wl,--start-group
libinput.so.10.13.0 liblibinput-util.a libquirks.a /usr/local/lib/libmtdev.so
/usr/x86_64-linux-gnu/libudev.so /usr/local/lib/libevdev.so -lm -lrt
/usr/local/lib/libwacom.so /usr/local/lib/libcheck.a -ldl /lib64/libsystemd.so
-Wl,--end-group '-Wl,-rpath,$$ORIGIN/:/usr/x86_64-linux-gnu'
-Wl,-rpath-link,/src/wayland/libinput-1.13.4/build-0.51/
-Wl,-rpath-link,/usr/x86_64-linux-gnu
thus with one -lm within --start-group … --end-group, fails with ld.bfd, but
works when I append to the line -fuse-ld=gold or -lm.
My understanding for --start-group … --end-group is that this is a loop, which
works in such a way, that there is no need to repeat things listed in the loop
body.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/24873] New: ld.bfd fails if -lm is included only once within --start-group … --end-group,
dilyan.palauzov at aegee dot org <=
- [Bug ld/24873] ld.bfd fails if -lm is included only once within --start-group … --end-group, dilyan.palauzov at aegee dot org, 2019/08/02
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/02
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, dilyan.palauzov at aegee dot org, 2019/08/03
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/04
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/04
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/05
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, dilyan.palauzov at aegee dot org, 2019/08/05
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, dilyan.palauzov at aegee dot org, 2019/08/05
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/06
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/06