2017-04-13 16:52:58 +08:00
|
|
|
// REQUIRES: arm
|
|
|
|
// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t
|
|
|
|
// RUN: ld.lld %t -o %t2 --icf=all
|
2020-03-16 08:47:44 +08:00
|
|
|
// RUN: llvm-objdump -s -d --triple=armv7a-none-linux-gnueabi %t2 | FileCheck %s
|
2017-04-13 16:52:58 +08:00
|
|
|
|
|
|
|
.syntax unified
|
|
|
|
.section .text.f,"axG",%progbits,f,comdat
|
|
|
|
f:
|
|
|
|
.fnstart
|
|
|
|
bx lr
|
|
|
|
.fnend
|
|
|
|
|
|
|
|
.section .text.g,"axG",%progbits,g,comdat
|
|
|
|
g:
|
|
|
|
.fnstart
|
|
|
|
bx lr
|
|
|
|
.fnend
|
|
|
|
|
|
|
|
.section .text.h
|
|
|
|
.global __aeabi_unwind_cpp_pr0
|
|
|
|
__aeabi_unwind_cpp_pr0:
|
2017-06-10 08:38:55 +08:00
|
|
|
nop
|
2017-04-13 16:52:58 +08:00
|
|
|
bx lr
|
|
|
|
|
[llvm-objdump] Further rearrange llvm-objdump sections for compatability
Summary:
rL371826 rearranged some output from llvm-objdump for GNU objdump compatability, but there still seem to be some more.
I think this rearrangement is a little closer. Overview of the ordering which matches GNU objdump:
* Archive headers
* File headers
* Section headers
* Symbol table
* Dwarf debugging
* Relocations (if `--disassemble` is not used)
* Section contents
* Disassembly
Reviewers: jhenderson, justice_adams, grimar, ychen, espindola
Reviewed By: jhenderson
Subscribers: aprantl, emaste, arichardson, jrtc27, atanasyan, seiya, llvm-commits, MaskRay
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68066
llvm-svn: 373671
2019-10-04 06:01:08 +08:00
|
|
|
// CHECK: Contents of section .ARM.exidx:
|
2020-04-18 23:06:37 +08:00
|
|
|
// CHECK-NEXT: 100d4 18000100 b0b0b080 14000100 01000000
|
[llvm-objdump] Further rearrange llvm-objdump sections for compatability
Summary:
rL371826 rearranged some output from llvm-objdump for GNU objdump compatability, but there still seem to be some more.
I think this rearrangement is a little closer. Overview of the ordering which matches GNU objdump:
* Archive headers
* File headers
* Section headers
* Symbol table
* Dwarf debugging
* Relocations (if `--disassemble` is not used)
* Section contents
* Disassembly
Reviewers: jhenderson, justice_adams, grimar, ychen, espindola
Reviewed By: jhenderson
Subscribers: aprantl, emaste, arichardson, jrtc27, atanasyan, seiya, llvm-commits, MaskRay
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68066
llvm-svn: 373671
2019-10-04 06:01:08 +08:00
|
|
|
|
2017-04-13 16:52:58 +08:00
|
|
|
// CHECK: Disassembly of section .text:
|
2019-05-01 18:40:48 +08:00
|
|
|
// CHECK-EMPTY:
|
2020-03-06 06:18:38 +08:00
|
|
|
// CHECK-NEXT: <g>:
|
2020-04-18 23:06:37 +08:00
|
|
|
// CHECK-NEXT: 200ec: 1e ff 2f e1 bx lr
|
2020-03-06 06:18:38 +08:00
|
|
|
// CHECK: <__aeabi_unwind_cpp_pr0>:
|
2020-04-18 23:06:37 +08:00
|
|
|
// CHECK-NEXT: 200f0: 00 f0 20 e3 nop
|
|
|
|
// CHECK-NEXT: 200f4: 1e ff 2f e1 bx lr
|