aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2007-05-21 06:36:01 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2007-05-21 06:36:01 +0000
commit7df428b11639efa0ec64b3f10a2472bd68316179 (patch)
treed57b57951375d3ece592152d10eea364126e9516 /binutils
parent56c40d18e2015b46cf5455850e88e3f68882ca51 (diff)
downloadgdb-7df428b11639efa0ec64b3f10a2472bd68316179.zip
gdb-7df428b11639efa0ec64b3f10a2472bd68316179.tar.gz
gdb-7df428b11639efa0ec64b3f10a2472bd68316179.tar.bz2
binutils/
* objdump.c (disassemble_bytes): Ignore disassembler_needs_relocs for executables and shared libraries. ld/testsuite/ * ld-arm/emit-relocs1.d, ld-arm/emit-relocs1.s, * ld-arm/emit-relocs1-vxworks.d: New tests. * ld-arm/arm-elf.exp: Run them. * ld-arm/vxworks1.dd: Expect proper branch targets.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/objdump.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 6a7d945..ee7ea30 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-21 Richard Sandiford <richard@codesourcery.com>
+
+ * objdump.c (disassemble_bytes): Ignore disassembler_needs_relocs
+ for executables and shared libraries.
+
2007-05-18 Nathan Sidwell <nathan@codesourcery.com>
* objcopy.c (strip_main): Detect identical input and output file
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 8927151..82a6a39 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -1377,6 +1377,8 @@ disassemble_bytes (struct disassemble_info * info,
info->flags = 0;
if (info->disassembler_needs_relocs
+ && (bfd_get_file_flags (aux->abfd) & EXEC_P) == 0
+ && (bfd_get_file_flags (aux->abfd) & DYNAMIC) == 0
&& *relppp < relppend)
{
bfd_signed_vma distance_to_rel;