Replace .pushsection directives (#30)

This commit is contained in:
Justine Tunney 2021-01-10 13:30:48 -08:00
parent 28316891e9
commit 04f1d89f84
16 changed files with 171 additions and 10422 deletions

View file

@ -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");

View file

@ -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