mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-08-23 10:33:50 -04:00
Merge 52990b6f7cc678cec5e29e3cd0e7c0f4096de0be into ada267ec8cb708317e707158f0296fab5ccb794e
This commit is contained in:
commit
5b8ee597f4
@ -1041,8 +1041,8 @@ static void coff_write(void)
|
||||
/* fill in the .drectve section with -export's */
|
||||
BuildExportTable(&Exports);
|
||||
|
||||
if (win32) {
|
||||
/* add default value for @feat.00, this allows to 'link /safeseh' */
|
||||
/* Emit an absolute @feat.00 symbol */
|
||||
{
|
||||
uint32_t n;
|
||||
|
||||
saa_rewind(coff_syms);
|
||||
@ -1051,8 +1051,15 @@ static void coff_write(void)
|
||||
if (sym->strpos == -1 && !strcmp("@feat.00",sym->name))
|
||||
break;
|
||||
}
|
||||
if (n == coff_nsyms)
|
||||
coff_deflabel("@feat.00", NO_SEG, 1, 0, NULL);
|
||||
if (n == coff_nsyms) {
|
||||
int64_t feat00_flags = 0;
|
||||
if (win32)
|
||||
/* marks the object for "registered SEH". this allows to 'link /safeseh' */
|
||||
feat00_flags |= 1;
|
||||
|
||||
feat00_flags |= 0x800; /* object is CFG-aware */
|
||||
coff_deflabel("@feat.00", NO_SEG, feat00_flags, 0, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user