From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10613 invoked by alias); 30 Jul 2009 03:59:56 -0000 Received: (qmail 10588 invoked by uid 48); 30 Jul 2009 03:59:46 -0000 Date: Thu, 30 Jul 2009 03:59:00 -0000 Message-ID: <20090730035946.10587.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/40905] GCC creates invalid executable with auto-imported DLL and __attribute__((cold)) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg02409.txt.bz2 ------- Comment #3 from pinskia at gcc dot gnu dot org 2009-07-30 03:59 ------- Doesn't DLL source need to be compiled with -fPIC to allow it to work? So what is happening is you are getting a runtime relocation inside the .text.unlikely section which should not happen for DLLs I think ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40905