diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-08-27 14:47:33 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-08-27 14:47:33 +0000 |
commit | 9e80ff3a408eea05b93b74ccaa98f0b5e7df0fe0 (patch) | |
tree | 96ea53841d208a4dd0011cb4c46c7f26e49d58a6 /bfd | |
parent | e88b7c9780cb77f81170b5425d88c40a07b6bc9a (diff) | |
download | binutils-9e80ff3a408eea05b93b74ccaa98f0b5e7df0fe0.tar.gz binutils-9e80ff3a408eea05b93b74ccaa98f0b5e7df0fe0.tar.bz2 binutils-9e80ff3a408eea05b93b74ccaa98f0b5e7df0fe0.zip |
2001-08-27 H.J. Lu <hjl@gnu.org>
* elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
(_bfd_mips_elf_copy_indirect_symbol): Likewise.
(_bfd_elf32_mips_grok_prstatus): Likewise.
(_bfd_elf32_mips_grok_psinfo): Likewise.
(_bfd_mips_elf_hide_symbol): Make it static and cast to
`struct mips_elf_link_hash_entry *'.
(_bfd_mips_elf_copy_indirect_symbol): Make it static.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 10 | ||||
-rw-r--r-- | bfd/elf32-mips.c | 22 |
2 files changed, 27 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 65872d20cc8..7df8ea2f07e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,13 @@ +2001-08-27 H.J. Lu <hjl@gnu.org> + + * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype. + (_bfd_mips_elf_copy_indirect_symbol): Likewise. + (_bfd_elf32_mips_grok_prstatus): Likewise. + (_bfd_elf32_mips_grok_psinfo): Likewise. + (_bfd_mips_elf_hide_symbol): Make it static and cast to + `struct mips_elf_link_hash_entry *'. + (_bfd_mips_elf_copy_indirect_symbol): Make it static. + 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com> * mipsbsd.c: Add missing prototypes. diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index fcf4cc7dd2a..cc2f00659d0 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -210,6 +210,15 @@ static boolean mips_elf_stub_section_p PARAMS ((bfd *, asection *)); static int sort_dynamic_relocs PARAMS ((const void *, const void *)); +static void _bfd_mips_elf_hide_symbol + PARAMS ((struct bfd_link_info *, struct elf_link_hash_entry *)); +static void _bfd_mips_elf_copy_indirect_symbol + PARAMS ((struct elf_link_hash_entry *, + struct elf_link_hash_entry *)); +static boolean _bfd_elf32_mips_grok_prstatus + PARAMS ((bfd *, Elf_Internal_Note *)); +static boolean _bfd_elf32_mips_grok_psinfo + PARAMS ((bfd *, Elf_Internal_Note *)); extern const bfd_target bfd_elf32_tradbigmips_vec; extern const bfd_target bfd_elf32_tradlittlemips_vec; @@ -3999,14 +4008,16 @@ mips_elf_link_hash_newfunc (entry, table, string) return (struct bfd_hash_entry *) ret; } -void -_bfd_mips_elf_hide_symbol (info, h) +static void +_bfd_mips_elf_hide_symbol (info, entry) struct bfd_link_info *info; - struct mips_elf_link_hash_entry *h; + struct elf_link_hash_entry *entry; { bfd *dynobj; asection *got; struct mips_got_info *g; + struct mips_elf_link_hash_entry *h; + h = (struct mips_elf_link_hash_entry *) entry; dynobj = elf_hash_table (info)->dynobj; got = bfd_get_section_by_name (dynobj, ".got"); g = (struct mips_got_info *) elf_section_data (got)->tdata; @@ -8065,7 +8076,7 @@ _bfd_mips_elf_gc_sweep_hook (abfd, info, sec, relocs) hiding the old indirect symbol. Process additional relocation information. */ -void +static void _bfd_mips_elf_copy_indirect_symbol (dir, ind) struct elf_link_hash_entry *dir, *ind; { @@ -9170,7 +9181,8 @@ _bfd_elf32_mips_grok_prstatus (abfd, note) raw_size, note->descpos + offset); } -static boolean _bfd_elf32_mips_grok_psinfo (abfd, note) +static boolean +_bfd_elf32_mips_grok_psinfo (abfd, note) bfd *abfd; Elf_Internal_Note *note; { |