forked from Imagelibrary/binutils-gdb
PR binutils/5146
* elf64-hppa.c: Declare alloca when __GNUC__ is defined. * som.c: Likewise.
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
2007-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
2007-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||||
|
|
||||||
|
PR binutils/5146
|
||||||
|
* elf64-hppa.c: Declare alloca when __GNUC__ is defined.
|
||||||
|
* som.c: Likewise.
|
||||||
|
|
||||||
* elf-hppa.h (elf_hppa_osec_to_segment): New function.
|
* elf-hppa.h (elf_hppa_osec_to_segment): New function.
|
||||||
(elf_hppa_record_segment_addrs): Use elf_hppa_osec_to_segment.
|
(elf_hppa_record_segment_addrs): Use elf_hppa_osec_to_segment.
|
||||||
Remove ATTRIBUTE_UNUSED from abfd argument.
|
Remove ATTRIBUTE_UNUSED from abfd argument.
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ extern void *alloca ();
|
|||||||
# endif /* alloca */
|
# endif /* alloca */
|
||||||
# endif /* _AIX */
|
# endif /* _AIX */
|
||||||
# endif /* HAVE_ALLOCA_H */
|
# endif /* HAVE_ALLOCA_H */
|
||||||
|
#else
|
||||||
|
extern void *alloca (size_t);
|
||||||
#endif /* __GNUC__ */
|
#endif /* __GNUC__ */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -59,6 +59,8 @@ extern void *alloca ();
|
|||||||
# endif /* alloca */
|
# endif /* alloca */
|
||||||
# endif /* _AIX */
|
# endif /* _AIX */
|
||||||
# endif /* HAVE_ALLOCA_H */
|
# endif /* HAVE_ALLOCA_H */
|
||||||
|
#else
|
||||||
|
extern void *alloca (size_t);
|
||||||
#endif /* __GNUC__ */
|
#endif /* __GNUC__ */
|
||||||
|
|
||||||
static bfd_reloc_status_type hppa_som_reloc
|
static bfd_reloc_status_type hppa_som_reloc
|
||||||
|
|||||||
Reference in New Issue
Block a user