From: Alan Modra Date: Tue, 29 Jul 2003 06:47:10 +0000 (+0000) Subject: * elf64-ppc.c (func_desc_adjust): Give linker created function X-Git-Tag: gprof-pre-ansify-2004-05-26~1514 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1bca0bb717b93e6f63f5bd1a79811e4b55bdb91b;p=pf3gnuchains%2Fpf3gnuchains4x.git * elf64-ppc.c (func_desc_adjust): Give linker created function descriptor symbols a size and type. (ppc64_elf_relocate_section): Correct lq insn test. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3c71b89bc4..1f3b785c57 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2003-07-29 Alan Modra + + * elf64-ppc.c (func_desc_adjust): Give linker created function + descriptor symbols a size and type. + (ppc64_elf_relocate_section): Correct lq insn test. + 2003-07-28 Eric Christopher * elf32-ppc.c (R_PPC_RELAX32): New relocation. diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index dda658de08..07ba432c4e 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -4310,6 +4310,8 @@ func_desc_adjust (struct elf_link_hash_entry *h, void *inf) } fdh = (struct elf_link_hash_entry *) bh; fdh->elf_link_hash_flags &= ~ELF_LINK_NON_ELF; + fdh->size = 24; + fdh->type = STT_OBJECT; } if (fdh != NULL @@ -8434,7 +8436,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, _DS relocs bloats all reloc switches in this file. It doesn't seem to make much sense to use any of these relocs in data, so testing the insn should be safe. */ - if ((insn & (0x3f << 26)) == (56 << 26)) + if ((insn & (0x3f << 26)) == (56u << 26)) mask = 15; if (((relocation + addend) & mask) != 0) {