https://sourceware.org/bugzilla/show_bug.cgi?id=32006
--- Comment #7 from Thomas Jahns <jahns at dkrz dot de> --- What I meant was that I think static resolution of symbols from the same object file is different from lookups in other files. Also the documentation of option --start-group option suggests that symbols should be resolved strictly left to right, unless that option is used, i.e. $ gcc -nostdlib -static -L/opt/diet/lib-x86_64 /opt/diet/lib-x86_64/start.o -o t test.c -D_REENTRANT -lpthread -Wl,-Map,mapfile -isystem /opt/diet/include -D__dietlibc__ -Wl,--start-group /opt/diet/lib-x86_64/libc.a -lgcc -Wl,--end-group /opt/diet/lib-x86_64/crtend.o should provide the expected behaviour. -- You are receiving this mail because: You are on the CC list for the bug.