------- Comment #23 from jason at gcc dot gnu dot org 2006-07-02 04:30 ------- (In reply to comment #22) > I still say if the definition was not marked as having a visibility, then the > code is wrong as someone could mark stuff weirdly.
Yes, if someone's code marks a function as hidden in a translation unit where it is only called, and not in the TU where it is defined, sounds to me like their code is doing strange and probably broken things. But that seems to be what the ELF standard requires, and this bug report indicates that several people seem to want the feature. > Now does the other question (since I cannot remember when looking at the elf > standard) is that the section about visibility being combined is that about > linking or just creating a module. The quotes in other comments make it pretty clear that it's about linking. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218