flat assembler
Message board for the users of flat assembler.

Index > Linux > ELF hidden symbol attribute

Author
Thread Post new topic Reply to topic
sylware



Joined: 23 Oct 2020
Posts: 409
Location: Marseille/France
sylware 27 Mar 2024, 13:18
Hi,

Did I miss how to set the ELF HIDDEN symbol attribute?
Post 27 Mar 2024, 13:18
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8340
Location: Kraków, Poland
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).
Post 27 Mar 2024, 15:47
View user's profile Send private message Visit poster's website Reply with quote
sylware



Joined: 23 Oct 2020
Posts: 409
Location: Marseille/France
sylware 27 Mar 2024, 18:07
Huh, I forgot to mention fasmg, but I guess I'll move to fasm2.

That said, github.com is getting worse at being friendly with noscript/basic (x)html browser to display code text (it is not even showing, I have to git clone to browse the code... but hey, what did I expect from microsoft github...).
Post 27 Mar 2024, 18:07
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8340
Location: Kraków, Poland
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.
Post 27 Mar 2024, 18:54
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.