summaryrefslogtreecommitdiff
path: root/output/outelf64.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-01-02 15:53:11 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2010-01-03 15:04:46 +0300
commita135658e83e4917b9a79c5e1337847c2a2bbdf90 (patch)
tree2bcb07c27772efeb4876dbed25cee1a646d8cdf2 /output/outelf64.c
parentde623f267918a316e1c8c9fa63ccee67922470cf (diff)
downloadnasm-a135658e83e4917b9a79c5e1337847c2a2bbdf90.tar.gz
ELF: Explicitly point out SYM_GLOBAL, SYM_LOCAL binding
Instead of implicit declaration of global symbols obtained by STB_GLOBAL << 4, and local symbols by STB_LOCAL << 4 use ELF32_ST_MKBIND helpers. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'output/outelf64.c')
-rw-r--r--output/outelf64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/output/outelf64.c b/output/outelf64.c
index acd79d40..fb373b78 100644
--- a/output/outelf64.c
+++ b/output/outelf64.c
@@ -56,7 +56,6 @@
#include "output/dwarf.h"
#include "output/stabs.h"
-#include "output/elf.h"
#include "output/outelf.h"
#ifdef OF_ELF64
@@ -514,7 +513,7 @@ static void elf_deflabel(char *name, int32_t segment, int64_t offset,
memset(&sym->symv, 0, sizeof(struct rbtree));
sym->strpos = pos;
- sym->type = is_global ? SYM_GLOBAL : 0;
+ sym->type = is_global ? SYM_GLOBAL : SYM_LOCAL;
sym->other = STV_DEFAULT;
sym->size = 0;
if (segment == NO_SEG)