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

--- Comment #11 from maillist-gdb at barfooze dot de ---
according to the contents of the "abfd" variable when the assert is raised,
it's caused by the stdin.o and fflush.o object files in libc.a, which both do
some weak symbol magic to pull in specific functions or data only when they're
actually used.
i'm not fully understanding yet what's happening there...

the code in question is
http://git.etalabs.net/cgit/musl/tree/src/stdio/fflush.c#n23
http://git.etalabs.net/cgit/musl/tree/src/stdio/stdin.c#n15 (variable is
defined here http://git.etalabs.net/cgit/musl/tree/src/stdio/__stdio_exit.c#n4
)

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

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.

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