mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 18:44:20 +08:00
* elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
* elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
This commit is contained in:
parent
f52cd8cdd8
commit
1bbe090216
@ -1,3 +1,8 @@
|
||||
2010-03-15 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
|
||||
* elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
|
||||
|
||||
2010-03-14 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR ld/11378
|
||||
|
@ -8274,6 +8274,16 @@ ppc64_elf_edit_toc (struct bfd_link_info *info)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* Return true iff input section I references the TOC using
|
||||
instructions limited to +/-32k offsets. */
|
||||
|
||||
bfd_boolean
|
||||
ppc64_elf_has_small_toc_reloc (asection *i)
|
||||
{
|
||||
return (is_ppc64_elf (i->owner)
|
||||
&& ppc64_elf_tdata (i->owner)->has_small_toc_reloc);
|
||||
}
|
||||
|
||||
/* Allocate space for one GOT entry. */
|
||||
|
||||
static void
|
||||
|
@ -29,6 +29,8 @@ bfd_boolean ppc64_elf_tls_optimize
|
||||
(struct bfd_link_info *);
|
||||
bfd_boolean ppc64_elf_edit_toc
|
||||
(struct bfd_link_info *);
|
||||
bfd_boolean ppc64_elf_has_small_toc_reloc
|
||||
(asection *);
|
||||
bfd_vma ppc64_elf_toc
|
||||
(bfd *);
|
||||
int ppc64_elf_setup_section_lists
|
||||
|
Loading…
Reference in New Issue
Block a user