[RFC] changing elf visibility syntax

Mike Frysinger vapier at gentoo.org
Sat Dec 17 18:23:04 PST 2005


recently i was playing with nasm and wanted to mark some functions with
hidden visibility ... that's when i found out nasm didnt support such a
thing, so i posted a simple patch to the nasm list to add support for:
GLOBAL foo:function:hidden
which would declare the foo symbol as a function with hidden visibility

when i started playing with yasm, i thought to check to see if it had
support for visibility and i was pleasantly surprised to find that it
did already :)

the difference is in syntax though ... yasm does:
GLOBAL foo:function hidden
notice my version uses a ":" between the type/visibility while yasm
uses a " " ...

i noted this on the nasm list and someone pointed out that it'd be best
if nasm and yasm didnt diverge syntax unnecessarily.  since my version
makes more sense imho, and since it'd be harder to add support for the
syntax used currently in yasm to nasm (i certainly dont know my way
around the nasm source code base so i wouldnt be able to do it), i was
wondering if yasm devs would consider changing ?  especially since the
last release doesnt support visibility, it's not like syntax would be
broken across releases ...
-mike


More information about the yasm-devel mailing list