[Bug ld/32003] Specifying --package-metadata might not be possible and is too fragile
https://sourceware.org/bugzilla/show_bug.cgi?id=32003 Matthias Klose changed: What|Removed |Added CC||doko at debian dot org --- Comment #22 from Matthias Klose --- using a specs file is even more ugly, please see https://sourceware.org/pipermail/binutils/2024-July/135977.html -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gold/32041] New: gold --start-lib/--end-lib error with lto.
https://sourceware.org/bugzilla/show_bug.cgi?id=32041 Bug ID: 32041 Summary: gold --start-lib/--end-lib error with lto. Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: koule2333 at gmail dot com CC: ian at airs dot com Target Milestone: --- I am using gold(2.41) and -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gold/32041] gold --start-lib/--end-lib error with lto.
https://sourceware.org/bugzilla/show_bug.cgi?id=32041 --- Comment #1 from Chuang Wang --- mycase: // caller.cpp #include extern int hack(); int main() { std::cout << hack() << std::endl; } // goo.cpp int hack() { int s = 1; for (int i = 1; i < ; ++i) { s *= i + i; } return s; } // foo.cpp #include #include std::map double2String; void update(double f, const std::string& s) { double2String[f] = s; } std::string query(double f) { return double2String.at(f); } // build.sh g++ -O3 -fPIC -c foo.cpp g++ -O3 -fPIC -c goo.cpp g++ -O3 -fuse-ld=bfd -fPIC --shared -o libxxx.so foo.o goo.o g++ -O3 -fPIC -c caller.cpp g++ -O3 -fuse-ld=bfd -fPIC caller.o libxxx.so -o caller ./caller g++ -O3 -flto -fPIC -c foo.cpp g++ -O3 -flto -fPIC -c goo.cpp g++ -O3 -fuse-ld=gold -fPIC --shared -o libxxx.so -Wl,--start-lib foo.o goo.o -Wl,--end-lib ./caller -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gold/32041] gold --start-lib/--end-lib error with lto.
https://sourceware.org/bugzilla/show_bug.cgi?id=32041 --- Comment #2 from Chuang Wang --- the second ./caller got undefined symbol: _ZNSt3mapIdNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIdESaISt4pairIKdS5_EEED1Ev I am using gold(2.41) and gcc(12.3.1). -- You are receiving this mail because: You are on the CC list for the bug.