forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nanoMIPS][LLD] .eh_frame section parsing changed
Changed the way .eh_frame parsing is done for nanoMIPS, as they may contain relocations referring to the size of the CIEs/FDEs. lld reads .eh_frame sections using these sizes so it is necessary that the size value is available at the time of .eh_frame section parsing. It seems like integrated assembler for nanoMIPS is not resolving this relocation at assembly time, but the gnu's assembler for nanoMIPS is resolving it.
- Loading branch information
1 parent
496ec0a
commit 446214d
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# RUN: llvm-mc -filetype=obj -triple nanomips-elf -mcpu=i7200 %s -o %t.o | ||
# RUN: ld.lld %t.o -o %t | ||
# RUN: llvm-objdump -h %t | FileCheck %s | ||
|
||
# CHECK: .eh_frame 0000002c | ||
|
||
.linkrelax | ||
.cfi_sections .eh_frame | ||
.section .text, "ax", @progbits | ||
.align 1 | ||
.globl _start | ||
.ent _start | ||
|
||
_start: | ||
.cfi_startproc | ||
nop | ||
.cfi_endproc | ||
.end _start | ||
.size _start, .-_start | ||
|