aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-07-29 06:47:10 +0000
committerAlan Modra <amodra@gmail.com>2003-07-29 06:47:10 +0000
commit494dac0c9f1bb90c8b2886eb14554579ece202d5 (patch)
tree276ca3da767d055067ed636643591702e2ac237b /bfd/elf64-ppc.c
parentdeaaf2f3701aad02d16c911393ec9fbc04d24ec1 (diff)
downloadgdb-494dac0c9f1bb90c8b2886eb14554579ece202d5.zip
gdb-494dac0c9f1bb90c8b2886eb14554579ece202d5.tar.gz
gdb-494dac0c9f1bb90c8b2886eb14554579ece202d5.tar.bz2
* elf64-ppc.c (func_desc_adjust): Give linker created function
descriptor symbols a size and type. (ppc64_elf_relocate_section): Correct lq insn test.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index dda658d..07ba432 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)
{