* 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.
This commit is contained in:
Alan Modra 2001-08-17 15:56:58 +00:00
parent 563e308f24
commit c0846b2397
6 changed files with 19 additions and 9 deletions

View File

@ -1,3 +1,13 @@
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> 2001-08-17 Alan Modra <amodra@bigpond.net.au>
* linker.c (default_fill_link_order): Handle four byte fill value. * linker.c (default_fill_link_order): Handle four byte fill value.

View File

@ -3202,11 +3202,11 @@ bfd_get_mtime PARAMS ((bfd *abfd));
long long
bfd_get_size PARAMS ((bfd *abfd)); bfd_get_size PARAMS ((bfd *abfd));
int unsigned int
bfd_get_gp_size PARAMS ((bfd *abfd)); bfd_get_gp_size PARAMS ((bfd *abfd));
void void
bfd_set_gp_size PARAMS ((bfd *abfd, int i)); bfd_set_gp_size PARAMS ((bfd *abfd, unsigned int i));
bfd_vma bfd_vma
bfd_scan_vma PARAMS ((const char *string, const char **end, int base)); bfd_scan_vma PARAMS ((const char *string, const char **end, int base));

View File

@ -891,7 +891,7 @@ FUNCTION
bfd_get_gp_size bfd_get_gp_size
SYNOPSIS SYNOPSIS
int bfd_get_gp_size(bfd *abfd); unsigned int bfd_get_gp_size(bfd *abfd);
DESCRIPTION DESCRIPTION
Return the maximum size of objects to be optimized using the GP Return the maximum size of objects to be optimized using the GP
@ -899,7 +899,7 @@ DESCRIPTION
argument to the compiler, assembler or linker. argument to the compiler, assembler or linker.
*/ */
int unsigned int
bfd_get_gp_size (abfd) bfd_get_gp_size (abfd)
bfd *abfd; bfd *abfd;
{ {
@ -918,7 +918,7 @@ FUNCTION
bfd_set_gp_size bfd_set_gp_size
SYNOPSIS SYNOPSIS
void bfd_set_gp_size(bfd *abfd, int i); void bfd_set_gp_size(bfd *abfd, unsigned int i);
DESCRIPTION DESCRIPTION
Set the maximum size of objects to be optimized using the GP Set the maximum size of objects to be optimized using the GP
@ -929,7 +929,7 @@ DESCRIPTION
void void
bfd_set_gp_size (abfd, i) bfd_set_gp_size (abfd, i)
bfd *abfd; bfd *abfd;
int i; unsigned int i;
{ {
/* Don't try to set GP size on an archive or core file! */ /* Don't try to set GP size on an archive or core file! */
if (abfd->format != bfd_object) if (abfd->format != bfd_object)

View File

@ -2578,7 +2578,7 @@ ppc_elf_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
{ {
if (sym->st_shndx == SHN_COMMON if (sym->st_shndx == SHN_COMMON
&& !info->relocateable && !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 /* Common symbols less than or equal to -G nn bytes are automatically
put into .sdata. */ put into .sdata. */

View File

@ -1855,7 +1855,7 @@ elf64_alpha_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
{ {
if (sym->st_shndx == SHN_COMMON if (sym->st_shndx == SHN_COMMON
&& !info->relocateable && !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 /* Common symbols less than or equal to -G nn bytes are
automatically put into .sbss. */ automatically put into .sbss. */

View File

@ -1130,7 +1130,7 @@ elfNN_ia64_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
{ {
if (sym->st_shndx == SHN_COMMON if (sym->st_shndx == SHN_COMMON
&& !info->relocateable && !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 /* Common symbols less than or equal to -G nn bytes are
automatically put into .sbss. */ automatically put into .sbss. */