------- Additional Comments From danglin at gcc dot gnu dot org 2005-03-19 17:25 ------- The last comment needs qualification. The technique doesn't work for common symbols because of the special assembler semantics used for these symbols on 32-bit hpux. However, it does work for other code and data symbols. For example, the following assembler output would create the necessary alias in gcc.c-torture/compile/20040323-1.c:
.EXPORT _rtld_global,DATA .SPACE $PRIVATE$ .SUBSPA $DATA$ .align 4 _rtld_local _rtld_global .blockz 4 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20524