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-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils