[PATCH] split assume pipe2/dup3/sock_cloexec knobs
Mike Frysinger
vapier@gentoo.org
Sat Aug 18 04:35:00 GMT 2012
On Friday 17 August 2012 23:49:22 Roland McGrath wrote:
> Incidentally it makes me wonder why we don't have attribute_hidden
> on all such variables. As it is, they all get GOT slots needing
> startup-time R_*_RELATIVE relocs (and corresponding indirection cost
> at runtime), don't they?
it does look that way. other __have_xxx vars are marked with attribute_hidden
too. i'll post a follow up patch.
> I wonder if there is something analogous to check-localplt that we
> could come up with for global-variable GOT slots and root this out
> generally.
annoyingly, `readelf -r` doesn't decode the symbols for R_X86_64_RELATIVE
relocs. so i think we might have to fix that first.
> More radically, we could conceivably one day just
> compile everything with -fvisibility=hidden and specifically
> annotate (via some new libc-symbol.h macro shorthand) each function
> intended to be exported with an overriding attribute. Hmm.
that might just be crazy enough to work ;)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120818/8e93f637/attachment.sig>
More information about the Libc-alpha
mailing list