Skip to content

Commit

Permalink
Merge pull request #2232 from ghaerr/c86sections
Browse files Browse the repository at this point in the history
[c86 libc] Renumber sections in c86 startup code
  • Loading branch information
ghaerr authored Feb 18, 2025
2 parents a236a22 + 70234c5 commit a67fe55
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libc/c86/syscall.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
use16 86

.sect 0 ; first text seg
dw 0,0 ; prevent text having address 0 for SIG_DFL,SIG_IGN
.sect 1 ; first data seg
nop ; prevent text having address 0 for SIG_DFL,SIG_IGN
nop
nop
nop
.sect 4 ; first data seg
dw 0,0 ; prevent data having address 0
.data ; default data seg 3
.data ; default data seg 7
.align 2
.comm _errno,2
.comm _environ,2
Expand Down

0 comments on commit a67fe55

Please sign in to comment.