aboutsummaryrefslogtreecommitdiff
path: root/dyngen.c
diff options
context:
space:
mode:
Diffstat (limited to 'dyngen.c')
-rw-r--r--dyngen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dyngen.c b/dyngen.c
index 45284954b8..d95d6a4523 100644
--- a/dyngen.c
+++ b/dyngen.c
@@ -635,6 +635,8 @@ static char *get_rel_sym_name(EXE_RELOC *rel)
name = get_sym_name(symtab + *(uint32_t *)(rel->r_reloc->r_symndx));
if (!strcmp(name, ".data"))
name = name_for_dotdata(rel);
+ if (name[0] == '.')
+ return NULL;
return name;
}
@@ -1698,6 +1700,8 @@ void gen_code(const char *name, host_ulong offset, host_ulong size,
if (rel->r_offset >= start_offset &&
rel->r_offset < start_offset + copy_size) {
sym_name = get_rel_sym_name(rel);
+ if (!sym_name)
+ continue;
if (strstart(sym_name, "__op_jmp", &p)) {
int n;
n = strtol(p, NULL, 10);