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

--- Comment #2 from Fam Zheng <famcool at gmail dot com> ---
Created attachment 7758
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7758&action=edit
Reproducer

I linked all the normal .o files from comment 0 to qemu-img-partial.o with "ld
-r", and put it into the archive.

Now if I link it with --just-symbols, ld aborts:

"ld -o qemu-img qemu-img-partial.o --just-symbols=iscsi.o libqemuutil.a
libqemustub.a $LDFLAGS"

See link.sh in the archive for the necessary libs in $LDFLAGS.

iscsi.o libqemuutil.a libqemustub.a are all included in the archived too, so
you can test this command line.

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

Reply via email to