Skip to content

Commit

Permalink
Fixed invalid CFI directive.
Browse files Browse the repository at this point in the history
  • Loading branch information
yugr committed Mar 18, 2024
1 parent a50b971 commit afa2f72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions arch/powerpc64/table.S.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* found in the LICENSE.txt file.
*/

.machine power7

.section .note.GNU-stack,"",@progbits

.data
Expand Down Expand Up @@ -73,6 +75,8 @@ _${lib_suffix}_save_regs_and_resolve:
stfd 12, -160(1)
stfd 13, -168(1)

// TODO: also save Altivec registers

stdu 1, -256(1)

.cfi_def_cfa_offset 256
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc64/trampoline.S.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $sym:
std 0, -8(1)

stdu 1, -128(1)
.cfi_def_cfa_offset 112
.cfi_def_cfa_offset 128
.cfi_offset lr, 16

bl _${lib_suffix}_save_regs_and_resolve
Expand Down

0 comments on commit afa2f72

Please sign in to comment.