[PATCH] Fix build with GCC 4
Andreas Schwab
schwab@suse.de
Sat Mar 5 14:30:00 GMT 2005
Jakub Jelinek <jakub@redhat.com> writes:
> --- libc/sysdeps/i386/dl-machine.h.jj 2005-02-16 20:16:33.000000000 -0500
> +++ libc/sysdeps/i386/dl-machine.h 2005-03-04 16:50:32.313591897 -0500
> @@ -301,9 +301,7 @@ elf_machine_plt_value (struct link_map *
>
> /* The i386 never uses Elf32_Rela relocations for the dynamic linker.
> Prelinked libraries may use Elf32_Rela though. */
> -#ifdef RTLD_BOOTSTRAP
> -# define ELF_MACHINE_NO_RELA 1
> -#endif
> +#define ELF_MACHINE_NO_RELA (defined RTLD_BOOTSTRAP)
Does gcc guarantee that this works (which would be an extension wrt the C
standard)?
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-hacker
mailing list