* bfd.c (bfd_get_gp_size): Return an unsigned int.
authorAlan Modra <amodra@gmail.com>
Fri, 17 Aug 2001 15:56:58 +0000 (15:56 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 17 Aug 2001 15:56:58 +0000 (15:56 +0000)
(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.

bfd/ChangeLog
bfd/bfd-in2.h
bfd/bfd.c
bfd/elf32-ppc.c
bfd/elf64-alpha.c
bfd/elfxx-ia64.c

index 93af021..f80b01b 100644 (file)
@@ -1,5 +1,15 @@
 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
 
+       * 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  <amodra@bigpond.net.au>
+
        * linker.c (default_fill_link_order): Handle four byte fill value.
 
 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
index 37dae3d..67881f2 100644 (file)
@@ -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));
index 8305ddc..2f5e260 100644 (file)
--- 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)
index 87a07b5..413a769 100644 (file)
@@ -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.  */
index f7d8db5..73a085f 100644 (file)
@@ -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.  */
index 8aebd81..8fdb9a0 100644 (file)
@@ -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.  */