From 7b60c20e4c9e42d62f073e06303dd4ce41634125 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Mon, 7 Jul 2008 19:00:21 +0000 Subject: [PATCH] * ld-arm/arm-elf.exp: Use objdump -d for arm-be8 test. * ld-arm/arm-be8.d: Change to test disassembly. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-arm/arm-be8.d | 18 +++++++++++++----- ld/testsuite/ld-arm/arm-elf.exp | 2 +- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 1d9610c..9159c2a 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-07-07 Stan Shebs + + * ld-arm/arm-elf.exp: Use objdump -d for arm-be8 test. + * ld-arm/arm-be8.d: Change to test disassembly. + 2008-07-06 Nathan Sidwell * ld-scripts/include-1.d: New. diff --git a/ld/testsuite/ld-arm/arm-be8.d b/ld/testsuite/ld-arm/arm-be8.d index 43ce9b0..68a4ea3 100644 --- a/ld/testsuite/ld-arm/arm-be8.d +++ b/ld/testsuite/ld-arm/arm-be8.d @@ -1,8 +1,16 @@ .*: file format.* -Contents of section .text: - 8000 0000a0e3 1eff2fe1 c0467047 fff7fcff .* - 8010 12345678 .* -# Ignore .ARM.attributes section -#... +Disassembly of section .text: + +00008000 : + 8000: 0000a0e3 mov r0, #0 ; 0x0 + 8004: 1eff2fe1 bx lr + +00008008 : + 8008: c046 nop \(mov r8, r8\) + 800a: 7047 bx lr + 800c: fff7 fcff bl 8008 + +00008010 : + 8010: 12345678 .word 0x12345678 diff --git a/ld/testsuite/ld-arm/arm-elf.exp b/ld/testsuite/ld-arm/arm-elf.exp index 5f2af9d..7df49f4 100644 --- a/ld/testsuite/ld-arm/arm-elf.exp +++ b/ld/testsuite/ld-arm/arm-elf.exp @@ -144,7 +144,7 @@ set armelftests { {{objdump -dw arm-movwt.d}} "arm-movwt"} {"BE8 Mapping Symbols" "-static -T arm.ld -EB --be8" "-EB" {arm-be8.s} - {{objdump -s arm-be8.d}} + {{objdump -d arm-be8.d}} "arm-be8"} {"Using Thumb lib by another lib" "-shared tmpdir/mixed-lib.so" "" {use-thumb-lib.s} {{readelf -Ds use-thumb-lib.sym}} -- 2.7.4