https://sourceware.org/bugzilla/show_bug.cgi?id=17306
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Fam Zheng from comment #3) > (In reply to H.J. Lu from comment #1) > > BTW, you can try -Wl,-u,qmp_query_uuid for your original problem. > > Yes it does help, Thanks. But there are a few more symbols than > qmp_query_uuid that need to be pulled in from libqemustub.a, and more will > come in the future, so special casing several limited symbols with > -Wl,-u,foo is not a good solution compared to --just-symbols. --just-symbols may not do what you wanted: '--just-symbols=FILENAME' Read symbol names and their addresses from FILENAME, but do not relocate it or include it in the output. This allows your output file to refer symbolically to absolute locations of memory defined in other programs. You may use this option more than once. You can use for s in $(nm -u iscsi.o | awk '{ print $2 }'); do echo "-Wl,-u,$s"; done to generate all -Wl,u,xxx. -- 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