https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285401
--- Comment #64 from Mark Millard <marklmi26-f...@yahoo.com> --- (In reply to Dimitry Andric from comment #62) (In reply to Baptiste Daroussin from comment #59) I found one way to get the error report from ld via a command line change to the link: after -lc add an explicit -lsys : (I also have a --trace) (gdb) run --trace --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --enable-new-dtags -o environ-_progname /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib --version-script=environ-_progname-2.map /tmp/environ-_progname-9ea7fd.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lsys -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o Starting program: /usr/bin/ld --trace --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --enable-new-dtags -o environ-_progname /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib --version-script=environ-_progname-2.map /tmp/environ-_progname-9ea7fd.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lsys -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o /tmp/environ-_progname-9ea7fd.o /usr/lib/libgcc_s.so /lib/libc.so.7 /usr/lib/libsys.so /usr/lib/libgcc_s.so /usr/lib/crtend.o /usr/lib/crtn.o [New LWP 116444 of process 98103] [New LWP 116445 of process 98103] [New LWP 116446 of process 98103] [New LWP 116447 of process 98103] ld: error: non-exported symbol 'environ' in '/usr/lib/crt1.o' is referenced by DSO '/lib/libc.so.7' ld: error: non-exported symbol '__progname' in '/usr/lib/crt1.o' is referenced by DSO '/lib/libc.so.7' [LWP 116446 of process 98103 exited] [LWP 116444 of process 98103 exited] [LWP 116445 of process 98103 exited] [LWP 116447 of process 98103 exited] [Inferior 1 (process 98103) exited with code 01] -- You are receiving this mail because: You are the assignee for the bug.