https://sourceware.org/bugzilla/show_bug.cgi?id=26047
Bug ID: 26047 Summary: Don't allow linking ET_EXEC Product: binutils Version: 2.35 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- % as /dev/null -o a.o % ld.bfd a.o -o a ld.bfd: warning: cannot find entry symbol _start; defaulting to 0000000000401000 # a is an ET_EXEC ## GNU ld allows input ET_EXEC like an ET_REL % ld.bfd a -o b ld.bfd: warning: cannot find entry symbol _start; not setting start address ## gold disallows input ET_EXEC % gold a -o b gold: error: a: unsupported ELF file type 2 Accepting ET_EXEC may cause problems which will be hard to diagnose. The Linux kernel for a narrow window misused ET_EXEC as an input, which was fixed by my https://git.kernel.org/torvalds/c/90ceddcb495008ac8ba7a3dce297841efcd7d584 -- You are receiving this mail because: You are on the CC list for the bug.