(hppa-linux) simple testcase for binutils visibility problem
Randolph Chung
randolph@tausq.org
Mon Nov 11 23:10:00 GMT 2002
on hppa-linux, there seems to be a binutils problem with symbol
visibility. here's a simple test case to illustrate the problem,
taken from one of the ld testcases.
======= undef.s ==========
.protected protected
.hidden hidden
.internal internal
==========================
assemble with 'as -o undef.o undef.s' and run 'readelf -s undef.o'
on pa, you get:
Symbol table '.symtab' contains 4 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000 0 SECTION LOCAL DEFAULT 1
2: 00000000 0 SECTION LOCAL DEFAULT 2
3: 00000000 0 SECTION LOCAL DEFAULT 3
on ia32/ia64, i get this more reasonable output:
Symbol table '.symtab' contains 7 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 SECTION LOCAL DEFAULT 1
2: 0000000000000000 0 SECTION LOCAL DEFAULT 2
3: 0000000000000000 0 SECTION LOCAL DEFAULT 3
4: 0000000000000000 0 NOTYPE GLOBAL PROTECTED UND protected
5: 0000000000000000 0 NOTYPE GLOBAL HIDDEN UND hidden
6: 0000000000000000 0 NOTYPE GLOBAL INTERNAL UND internal
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
More information about the Binutils
mailing list