From: Alan Modra Date: Fri, 17 Aug 2001 15:56:58 +0000 (+0000) Subject: * bfd.c (bfd_get_gp_size): Return an unsigned int. X-Git-Tag: cygnus_cvs_20020108_pre~1646 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0846b239705bd8528996e60dbabe16344410b2d;p=platform%2Fupstream%2Fbinutils.git * bfd.c (bfd_get_gp_size): Return an unsigned int. (bfd_set_gp_size): Make param unsigned. * bfd-in2.h: Regenerate. * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather than calling bfd_get_gp_size. * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise. * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 93af021..f80b01b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,15 @@ 2001-08-17 Alan Modra + * bfd.c (bfd_get_gp_size): Return an unsigned int. + (bfd_set_gp_size): Make param unsigned. + * bfd-in2.h: Regenerate. + * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather + than calling bfd_get_gp_size. + * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise. + * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise. + +2001-08-17 Alan Modra + * linker.c (default_fill_link_order): Handle four byte fill value. 2001-08-17 Alan Modra diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 37dae3d..67881f2 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -3202,11 +3202,11 @@ bfd_get_mtime PARAMS ((bfd *abfd)); long bfd_get_size PARAMS ((bfd *abfd)); -int +unsigned int bfd_get_gp_size PARAMS ((bfd *abfd)); void -bfd_set_gp_size PARAMS ((bfd *abfd, int i)); +bfd_set_gp_size PARAMS ((bfd *abfd, unsigned int i)); bfd_vma bfd_scan_vma PARAMS ((const char *string, const char **end, int base)); diff --git a/bfd/bfd.c b/bfd/bfd.c index 8305ddc..2f5e260 100644 --- a/bfd/bfd.c +++ b/bfd/bfd.c @@ -891,7 +891,7 @@ FUNCTION bfd_get_gp_size SYNOPSIS - int bfd_get_gp_size(bfd *abfd); + unsigned int bfd_get_gp_size(bfd *abfd); DESCRIPTION Return the maximum size of objects to be optimized using the GP @@ -899,7 +899,7 @@ DESCRIPTION argument to the compiler, assembler or linker. */ -int +unsigned int bfd_get_gp_size (abfd) bfd *abfd; { @@ -918,7 +918,7 @@ FUNCTION bfd_set_gp_size SYNOPSIS - void bfd_set_gp_size(bfd *abfd, int i); + void bfd_set_gp_size(bfd *abfd, unsigned int i); DESCRIPTION Set the maximum size of objects to be optimized using the GP @@ -929,7 +929,7 @@ DESCRIPTION void bfd_set_gp_size (abfd, i) bfd *abfd; - int i; + unsigned int i; { /* Don't try to set GP size on an archive or core file! */ if (abfd->format != bfd_object) diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 87a07b5..413a769 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -2578,7 +2578,7 @@ ppc_elf_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp) { if (sym->st_shndx == SHN_COMMON && !info->relocateable - && sym->st_size <= (bfd_vma) bfd_get_gp_size (abfd)) + && sym->st_size <= elf_gp_size (abfd)) { /* Common symbols less than or equal to -G nn bytes are automatically put into .sdata. */ diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index f7d8db5..73a085f 100644 --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -1855,7 +1855,7 @@ elf64_alpha_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp) { if (sym->st_shndx == SHN_COMMON && !info->relocateable - && sym->st_size <= (unsigned int) bfd_get_gp_size (abfd)) + && sym->st_size <= elf_gp_size (abfd)) { /* Common symbols less than or equal to -G nn bytes are automatically put into .sbss. */ diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index 8aebd81..8fdb9a0 100644 --- a/bfd/elfxx-ia64.c +++ b/bfd/elfxx-ia64.c @@ -1130,7 +1130,7 @@ elfNN_ia64_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp) { if (sym->st_shndx == SHN_COMMON && !info->relocateable - && sym->st_size <= (unsigned) bfd_get_gp_size (abfd)) + && sym->st_size <= elf_gp_size (abfd)) { /* Common symbols less than or equal to -G nn bytes are automatically put into .sbss. */