mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-08-23 10:33:50 -04:00
outcoff: BR 2685756: fix SAFESEH with an internal symbol
Fix the SAFESEH directive for the specific case of a symbol internal to the program. With the optimizer enabled, it would otherwise fail unless the symbol is external.
This commit is contained in:
parent
92cb18f2a8
commit
08ced1d5b4
@ -726,7 +726,9 @@ static int coff_directives(char *directive, char *value, int pass)
|
|||||||
else
|
else
|
||||||
sxseg = i;
|
sxseg = i;
|
||||||
}
|
}
|
||||||
if (pass==2) {
|
/* pass0 == 2 is the only time when the full set of symbols are
|
||||||
|
guaranteed to be present; it is the final output pass. */
|
||||||
|
if (pass0 == 2) {
|
||||||
uint32_t n;
|
uint32_t n;
|
||||||
saa_rewind(syms);
|
saa_rewind(syms);
|
||||||
for (n = 0; n < nsyms; n++) {
|
for (n = 0; n < nsyms; n++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user