From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31193 invoked by alias); 30 Jul 2003 16:19:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31185 invoked by uid 48); 30 Jul 2003 16:19:26 -0000 Date: Wed, 30 Jul 2003 16:19:00 -0000 Message-ID: <20030730161926.31183.qmail@sources.redhat.com> From: "pinskia at physics dot uc dot edu" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030730155600.11726.tausq@debian.org> References: <20030730155600.11726.tausq@debian.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/11726] compiling programs with -static -fPIC produces code that will not run X-Bugzilla-Reason: CC X-SW-Source: 2003-07/txt/msg03575.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11726 ------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-30 16:19 ------- Actually you only see it on platforms where the PIC register is set (or not set) by the loader. On i686-pc-linux-gnu, the PIC register is variable and is set by the code outputed by gcc, also in powerpc-apple-darwin6.6 the same thing happens. I think this really a bug in the executable loader rather than gcc as you should be able to mix pic code and non-pic code just fine.