[...]
> I'm led to believe that these error messages are not present on a NetBSD
> box. So is this broken usage of __COPYRIGHT(), or is this pre-processor
> or assembler breakage?
Looks like breakage of the ELF __IDSTRING macro.
#if defined(__GNUC__) && defined(__ELF__)
#define __IDSTRING(name,string) __asm__(".ident\t\"" string "\"")
#else
#define __IDSTRING(name,string) static const char name[] __unused = string
#endif
This seems to work:
#define __IDSTRING(name,string) __asm__(".ident\t" #string)
#define __COPYRIGHT(s) __IDSTRING(copyright,s)
__COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993\n"
"The Regents of the University of California."
" All rights reserved.\n");
int
main(void)
{
exit(0);
}
Jake
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message