flat assembler
Message board for the users of flat assembler.
Index
> Linux > ELF hidden symbol attribute |
Author |
|
sylware 27 Mar 2024, 13:18
Hi,
Did I miss how to set the ELF HIDDEN symbol attribute? |
|||
27 Mar 2024, 13:18 |
|
Tomasz Grysztar 27 Mar 2024, 15:47
There's no such setting in fasm, but the macro-based implementation in fasm2 should be easy enough to extend. Just modify the "public?" macro to accept more options, or make a copy of the macro with another name for making such symbols and replace STT_FUNC/STT_OBJECT with STT_HIDDEN there (you also need to add the definition of STT_HIDDEN itself, which was not present in the old specification that this formatter was originally based on).
|
|||
27 Mar 2024, 15:47 |
|
Tomasz Grysztar 27 Mar 2024, 18:54
The formatter macros that come with fasm2 are just updated fasmg macros, you can still use the previous packages if you prefer.
|
|||
27 Mar 2024, 18:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.