]> granicus.if.org Git - yasm/commit
Add `hidden' `internal' and `protected' symbol visibility types to
authorMichael Urman <mu@tortall.net>
Sat, 12 Mar 2005 05:06:50 +0000 (05:06 -0000)
committerMichael Urman <mu@tortall.net>
Sat, 12 Mar 2005 05:06:50 +0000 (05:06 -0000)
commit3cc450d3ea88c4e22cd16b2459bef8c7b3f124ef
tree274ad22e49a2defdd00d54a398937a3c1b6473e3
parent7a703538bf9d8cdfd8c0d73596f60a36f4824cb4
Add `hidden' `internal' and `protected' symbol visibility types to
global symbols in ELF. Search for STV_HIDDEN for explanations; these
don't seem to appear in the base ELF documentation.

Sample syntax:
    global foo:hidden

Inspiration and base patch provided by Oskari Saarenmaa under our BSD
license. This checkin tweaks and extends Oskari's patch and adds tests.

svn path=/trunk/yasm/; revision=1202
modules/objfmts/elf/elf-objfmt.c
modules/objfmts/elf/elf-x86-amd64.c
modules/objfmts/elf/elf-x86-x86.c
modules/objfmts/elf/elf.c
modules/objfmts/elf/elf.h
modules/objfmts/elf/tests/Makefile.inc
modules/objfmts/elf/tests/elfvisibility.asm [new file with mode: 0644]
modules/objfmts/elf/tests/elfvisibility.errwarn [new file with mode: 0644]
modules/objfmts/elf/tests/elfvisibility.hex [new file with mode: 0644]