Skip to content

outcoff.c: Function type extension to the global, extern & static directives#233

Open
bird2tori wants to merge 2 commits into
netwide-assembler:masterfrom
bird2tori:outcoff-function-symbol-type
Open

outcoff.c: Function type extension to the global, extern & static directives#233
bird2tori wants to merge 2 commits into
netwide-assembler:masterfrom
bird2tori:outcoff-function-symbol-type

Conversation

@bird2tori
Copy link
Copy Markdown

Implemented marking win32/win64/COFF symbols as functions (type=0x20) the same way ELF does it. Need this for the control flow guard (/guard:cf linker option) feature on windows, as it looks like the linker checks for this when building the tables.

knut st. osmundsen added 2 commits May 13, 2026 01:48
Setting the symbol type is necessary for the control flow guard (CFG)
stuff on windows.
Documented the 'function' win32/64 extension to the global, extern
and static directives.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant