This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] Better PIC code production: Using #pragma

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Better PIC code production: Using #pragma GCC visibility, *all*
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Sep 2006 15:10:15 +0000
Delivery-date: Wed, 13 Sep 2006 08:11:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 29bc328cd8d39b79349e004323de2b57ab90d94b
# Parent  21dc71840bc0b5fab570c7125a857e5d55e10d01
Better PIC code production: Using #pragma GCC visibility, *all*
data references benefit, not just the ones to objects defined in the
same translation unit. However, as this now is a header file change,
detection logic cannot be used as nicely, so I guess we want to keep the
previous change and add this one on top.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
 xen/include/xen/compiler.h |    5 +++++
 1 files changed, 5 insertions(+)

diff -r 21dc71840bc0 -r 29bc328cd8d3 xen/include/xen/compiler.h
--- a/xen/include/xen/compiler.h        Wed Sep 13 14:12:28 2006 +0100
+++ b/xen/include/xen/compiler.h        Wed Sep 13 14:24:42 2006 +0100
@@ -35,6 +35,11 @@
 #define offsetof(a,b) ((unsigned long)&(((a *)0)->b))
+#if defined(__x86_64__) && (__GNUC__ > 3)
+/* Results in more efficient PIC code (no indirections through GOT or PLT). */
+#pragma GCC visibility push(hidden)
 /* This macro obfuscates arithmetic on a variable address so that gcc
    shouldn't recognize the original var, and make assumptions about it */

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Better PIC code production: Using #pragma GCC visibility, *all*, Xen patchbot-unstable <=