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

Rich Felker <bugdal at aerifal dot cx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugdal at aerifal dot cx

--- Comment #12 from Rich Felker <bugdal at aerifal dot cx> ---
For musl libc.a, neither stdin.o nor fflush.o should be pulled in unless
they're actually used. For stdin.o, that means referencing stdin itself or a
function (like scanf or getchar) that explicitly uses stdin. For fflush.o, the
users are assert, getpass, fclose, freopen, and the stdio_ext.h functions. So
this seems wrong:

> it seems they're getting pulled in via crt1.o -> __libc_start_main -> exit

As for:

> if i can find a way to get ld to list all the object files it pulls in from
> libc.a, i could extract those and attach them here.

Won't -Wl,-M do this? Or you could just look at a non-stripped output binary
with debug symbols, which should show the object file filenames that were
linked.

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