Replace .pushsection directives (#30)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
asm(".pushsection .start,\"ax\",@progbits\n\t"
|
||||
asm(".section .start,\"ax\",@progbits\n\t"
|
||||
".globl\t_start\n"
|
||||
"_start:\n\t"
|
||||
"jmp\t1f\n1:\t"
|
||||
"call\tmain\n\t"
|
||||
"nop\n\t"
|
||||
".popsection");
|
||||
".previous");
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
.Lrows = 0 # w/ 2 cols
|
||||
|
||||
.macro .tab sym:req str
|
||||
.pushsection .rodata.str1.1,"aSM",@progbits,1
|
||||
.section .rodata.str1.1,"aSM",@progbits,1
|
||||
.L\@: .asciz "\str"
|
||||
.popsection
|
||||
.previous
|
||||
.long RVA(\sym)
|
||||
.long RVA(.L\@)
|
||||
.Lrows = .Lrows + 1
|
||||
|
||||
Reference in New Issue
Block a user