diff options
author | H. Peter Anvin <hpa@zytor.com> | 2002-05-17 04:51:10 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2002-05-17 04:51:10 +0000 |
commit | 77a036e2135258a8cee158dbe24908ab045aac3d (patch) | |
tree | ee618d4c7baffb59883a6ce60284b0b0a4ef6924 /test/elftest.asm | |
parent | 64af0aa6de5f5e7643a391d3d6d544172ead3148 (diff) | |
download | nasm-77a036e2135258a8cee158dbe24908ab045aac3d.tar.gz |
Make .rodata a recognized ELF section with default attributes
Diffstat (limited to 'test/elftest.asm')
-rw-r--r-- | test/elftest.asm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/elftest.asm b/test/elftest.asm index c5a729f3..fcfb362b 100644 --- a/test/elftest.asm +++ b/test/elftest.asm @@ -22,6 +22,7 @@ ; [15] Reference a text-section symbol in the data section ; [16] Reference a data-section symbol in the data section ; [17] Reference a BSS-section symbol in the data section +; [18] Define a non-global rodata-section symbol BITS 32 GLOBAL lrotate ; [1] @@ -81,3 +82,6 @@ integer resd 1 ; [3] ; a local integer localint resd 1 ; [6] + + SECTION .rodata +readonly dd readonly ; [18] |