summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-07-27 21:56:03 -0700
committerH. Peter Anvin <hpa@zytor.com>2019-07-27 21:56:03 -0700
commitd0f0a9c887898bcd4f30603043890885de1c6a32 (patch)
tree7b0b64501593f41b55e37f5e393be4de8bd61cec
parentfbeaf65b4a93933e6dd7ac3a95e763252a14127c (diff)
downloadsamples-d0f0a9c887898bcd4f30603043890885de1c6a32.tar.gz
samples-d0f0a9c887898bcd4f30603043890885de1c6a32.tar.xz
samples-d0f0a9c887898bcd4f30603043890885de1c6a32.zip
Move PSP to -256, add PSP object, note that -q is only for debugging
Update to my binutils tree now handles R_386_SEG16 to a negative offset correctly, so the PSP can be moved to the correct address of -256. Add a separate object file for the PSP; this would normally be part of the runtime library if needed. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--psp.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/psp.s b/psp.s
new file mode 100644
index 0000000..385299a
--- /dev/null
+++ b/psp.s
@@ -0,0 +1,7 @@
+ .section "_PSP","awM",@nobits,256
+ .balign 16
+ .globl __psp, "__psp!"
+"__psp!":
+__psp: .space 256
+ .type __psp, object
+ .size __psp, 256