summaryrefslogtreecommitdiff
path: root/output/outelf64.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-04-21 13:45:32 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2010-04-21 18:09:54 +0400
commit2ef5c27be7a4e94c49560823d5074dafca6a2ac5 (patch)
tree34d8ad6a65e9b0b480c4fce2091ca93a110e0585 /output/outelf64.c
parent1f3db76ee973355489ea3a2296211d796b59a61f (diff)
downloadnasm-2ef5c27be7a4e94c49560823d5074dafca6a2ac5.tar.gz
Rename SEGALIGN to SECTALIGN
"sectalign" is preferred over "segalign" since it operates over section attributes. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'output/outelf64.c')
-rw-r--r--output/outelf64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/output/outelf64.c b/output/outelf64.c
index c7baf4f5..47581b4b 100644
--- a/output/outelf64.c
+++ b/output/outelf64.c
@@ -1405,7 +1405,7 @@ static void elf_sect_writeaddr(struct Section *sect, int64_t data, size_t len)
sect->len += len;
}
-static void elf_segalign(int32_t seg, int value)
+static void elf_sectalign(int32_t seg, unsigned int value)
{
struct Section *s = NULL;
int i;
@@ -1419,7 +1419,7 @@ static void elf_segalign(int32_t seg, int value)
if (!s || !is_power2(value))
return;
- if ((unsigned int)value > s->align)
+ if (value > s->align)
s->align = value;
}
@@ -1519,7 +1519,7 @@ struct ofmt of_elf64 = {
elf_out,
elf_deflabel,
elf_section_names,
- elf_segalign,
+ elf_sectalign,
elf_segbase,
elf_directive,
elf_filename,