mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
Merge remote-tracking branch 'rygorous/master'
This commit is contained in:
commit
0582a32300
@ -2692,7 +2692,11 @@ static void debug_typevalue(int32_t type)
|
||||
stype = STT_NOTYPE;
|
||||
break;
|
||||
}
|
||||
if (stype == STT_OBJECT && lastsym && !lastsym->type) {
|
||||
/* Set type and size info on most recently seen symbol if we haven't set it already.
|
||||
But avoid setting size info on object (data) symbols in absolute sections (which
|
||||
is primarily structs); some environments get confused with non-zero-extent absolute
|
||||
object symbols and end up showing them in backtraces for NULL fn pointer calls. */
|
||||
if (stype == STT_OBJECT && lastsym && !lastsym->type && lastsym->section != XSHN_ABS) {
|
||||
lastsym->size = ssize;
|
||||
lastsym->type = stype;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user