This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Evolution of ELF symbol management
On Nov 22 2016, Florian Weimer <fweimer@redhat.com> wrote:
> There also configure scripts which do
>
> extern char whatever();
> main () { whatever(); }
>
> for link testing, without including the appropriate header (perhaps
> deliberately). That could be considered broken. I'm not sure.
While getting the return type wrong makes it slightly broken, the C
standard does support declaring standard functions on your own, as long
as you don't need special types.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."