diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-06-25 12:30:50 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-06-25 12:30:50 -0700 |
commit | d219a3e46f0a9fe2b997eee8acd6bbe212bef4da (patch) | |
tree | 2b0ccd7055c93a75a332f3f805d17a2a43e8025f /doc | |
parent | 538628803ba8c0b6cf9d11f83f43fb678fd05e87 (diff) | |
download | nasm-d219a3e46f0a9fe2b997eee8acd6bbe212bef4da.tar.gz nasm-d219a3e46f0a9fe2b997eee8acd6bbe212bef4da.tar.bz2 nasm-d219a3e46f0a9fe2b997eee8acd6bbe212bef4da.zip |
ELF: add header files, begin merging common code, drop .comment
Add something approaching real ELF header files.
Begin merging the common ELF code, beginning with the section name
detection.
Drop automatic generation of .comment section, and in particular the
treatment of .common as a special section (if we decide generating
.comment is still a good idea, we should just do it as a macro.)
Augment the list of known sections, and make it table-driven.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/changes.src | 2 | ||||
-rw-r--r-- | doc/nasmdoc.src | 23 |
2 files changed, 16 insertions, 9 deletions
diff --git a/doc/changes.src b/doc/changes.src index 7835d38..60a98e9 100644 --- a/doc/changes.src +++ b/doc/changes.src @@ -44,6 +44,8 @@ since 2007. \b Removed AMD SSE5, replaced with the new XOP/FMA4/CVT16 (rev 3.03) spec. +\b The ELF backends no longer automatically generate a \c{.comment} section. + \S{cl-2.05.01} Version 2.05.01 diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src index d400469..888a19f 100644 --- a/doc/nasmdoc.src +++ b/doc/nasmdoc.src @@ -5353,15 +5353,20 @@ thread local variables. The defaults assumed by NASM if you do not specify the above qualifiers are: -\I\c{.text} \I\c{.data} \I\c{.bss} \I\c{.rodata} \I\c{.tdata} \I\c{.tbss} - -\c section .text progbits alloc exec nowrite align=16 -\c section .rodata progbits alloc noexec nowrite align=4 -\c section .data progbits alloc noexec write align=4 -\c section .bss nobits alloc noexec write align=4 -\c section .tdata progbits alloc noexec write align=4 tls -\c section .tbss nobits alloc noexec write align=4 tls -\c section other progbits alloc noexec nowrite align=1 +\I\c{.text} \I\c{.rodata} \I\c{.lrodata} \I\c{.data} \I\c{.ldata} +\I\c{.bss} \I\c{.lbss} \I\c{.tdata} \I\c{.tbss} \I\c\{.comment} + +\c section .text progbits alloc exec nowrite align=16 +\c section .rodata progbits alloc noexec nowrite align=4 +\c section .lrodata progbits alloc noexec nowrite align=4 +\c section .data progbits alloc noexec write align=4 +\c section .ldata progbits alloc noexec write align=4 +\c section .bss nobits alloc noexec write align=4 +\c section .lbss nobits alloc noexec write align=4 +\c section .tdata progbits alloc noexec write align=4 tls +\c section .tbss nobits alloc noexec write align=4 tls +\c section .comment progbits noalloc noexec nowrite align=1 +\c section other progbits alloc noexec nowrite align=1 (Any section name other than those in the above table is treated by default like \c{other} in the above table. |