[RFC] changing elf visibility syntax

Mike Frysinger vapier at gentoo.org
Sun Dec 18 08:12:34 PST 2005

On Sat, Dec 17, 2005 at 09:21:46PM -0800, Peter Johnson wrote:
> On Sun, 18 Dec 2005, Mike Frysinger wrote:
> >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 ...
> The problem with the proposed double-colon syntax is it doesn't match the 
> syntax of other NASM syntax objfmt-specific extensions when extra 
> parameters are given, e.g.:
>   global  hashtable:data (hashtable.end - hashtable)

that makes sense ... i'll take this back to nasm list then, thanks

> (both examples from the NASM manual).  So NASM already supports the same 
> type of syntax as YASM is using for ":function hidden"

i know the nasm parser can handle it, it's just that in my quick
tinkering, adding support for ':function:hidden' was a lot easier to
graft on than ':function hidden' ...

More information about the yasm-devel mailing list