2018-06-27 00:58:19 +08:00
|
|
|
# REQUIRES: mips
|
2016-05-22 03:48:54 +08:00
|
|
|
# Check reading addends for relocations in non-allocatable sections.
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t1.o
|
2020-02-20 13:27:13 +08:00
|
|
|
# RUN: echo '.section .debug_info,"",@0x7000001e; .word __start' | \
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux - -o %t2.o
|
2016-05-22 03:48:54 +08:00
|
|
|
# RUN: ld.lld %t1.o %t2.o -o %t.exe
|
2019-09-10 06:04:20 +08:00
|
|
|
# RUN: llvm-objdump -t -s %t.exe | FileCheck %s
|
2016-05-22 03:48:54 +08:00
|
|
|
|
2020-03-05 09:19:18 +08:00
|
|
|
# CHECK: [[SYM:[0-9a-f]+]] g .text 00000000 __start
|
[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
|
|
|
|
2016-05-22 03:48:54 +08:00
|
|
|
# CHECK: Contents of section .debug_info:
|
[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-NEXT: 0000 ffffffff [[SYM]] [[SYM]]
|
|
|
|
# ^-------^-- __start
|
2019-09-10 06:04:20 +08:00
|
|
|
|
2016-05-22 03:48:54 +08:00
|
|
|
|
|
|
|
.global __start
|
|
|
|
__start:
|
|
|
|
nop
|
|
|
|
|
2020-02-20 13:27:13 +08:00
|
|
|
.section .debug_info,"",@0x7000001e
|
2016-05-22 03:48:54 +08:00
|
|
|
.word 0xffffffff
|
|
|
|
.word __start
|