summaryrefslogtreecommitdiff
path: root/modules/objfmts/elf/tests/gasx32/crosssect.asm
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-06-26 11:34:50 -0700
committerPeter Johnson <peter@tortall.net>2012-08-30 23:47:41 -0700
commit510c8dd7e6b28413350652b4b0284a1ae52ed96f (patch)
tree00c72ccb691070c3e358ba1ffe5a1b5c9cd5c4d3 /modules/objfmts/elf/tests/gasx32/crosssect.asm
parent9728322335cba96500861ef766b1546d096e5600 (diff)
downloadyasm-510c8dd7e6b28413350652b4b0284a1ae52ed96f.tar.gz
Add support for x32
X32 is a 32-bit psABI for x86-64 with 32-bit pointer size. More info can be found at: https://sites.google.com/site/x32abi/
Diffstat (limited to 'modules/objfmts/elf/tests/gasx32/crosssect.asm')
-rw-r--r--modules/objfmts/elf/tests/gasx32/crosssect.asm18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/objfmts/elf/tests/gasx32/crosssect.asm b/modules/objfmts/elf/tests/gasx32/crosssect.asm
new file mode 100644
index 00000000..41999791
--- /dev/null
+++ b/modules/objfmts/elf/tests/gasx32/crosssect.asm
@@ -0,0 +1,18 @@
+.section .rodata
+ .align 4
+_sys_srt:
+ .long 0
+
+.text
+ .align 4,0x90
+ .long _sys_srt-.
+ .long _sys_srt-_sys_info
+ #.long _sys_info-_sys_srt
+ #.long -(_sys_srt-_sys_info)
+ .long _sys_info-.
+ .long .-_sys_info
+ .long (_sys_srt-.)+(.-_sys_info) # GAS cannot handle this but we can
+ .long 0
+ .long 65558
+_sys_info:
+ .long 0