X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=i2bx5ZgTM+NXgr7Mtz+v9EBm20Alunjjqdie/7mXkh0=; b=ZUZOkLlht5WfeeKDAvNl7+nBV5gI1BfDalSXvHloQt28VhYFSat+0Sb6hstBfYsj9o VPWdPQJnU3aH7puaUhD7oMiRFrBI0O+8Z1jbmBmFLxYgNY7HcTqUVVHV+ba6chMrCUPQ XdD7FF+Mr6HIm4aS6mf4v+NI12PaNYJeaTZZ7biZdXbGQczJ1zFLw0Z1wG2aspbGJ8nB XExurmQQl+VaGAtMpu4OQrsZFklY3ZvIa9R/Vnrjm+gL7WixzwURV87CQA5ICS7M9psE JXRCiwA9OQjbkdzT/6neDirFhlwjtMgFGjCM6j3lkq/xZO6dHvZESDR7cy/NS4MHCErk I5UA== MIME-Version: 1.0 X-Received: by 10.42.81.201 with SMTP id a9mr31083590icl.9.1431868017844; Sun, 17 May 2015 06:06:57 -0700 (PDT) In-Reply-To: <555889AB.1010608@iki.fi> References: <555889AB DOT 1010608 AT iki DOT fi> Date: Sun, 17 May 2015 16:06:57 +0300 Message-ID: Subject: Re: dlopen() crashes when DXE built with with gcc-5.1.0 From: "Ozkan Sezer (sezeroz AT gmail DOT com)" To: djgpp AT delorie DOT com Content-Type: text/plain; charset=UTF-8 Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 5/17/15, Andris Pavenis (andris DOT pavenis AT iki DOT fi) wrote: > dlopen() crashes when > - DXE is built using gcc-5.1.0 (verified that gcc-4.7.3 is OK, I did not > test 4.8 or 4.9 now) > - there are unresolved references in DXE > > tests/dxe/dldemo.c is such example which crashes when DXE is built using > gcc-5.1.0. > There are no crashes when only dldemo.c and libc is compiled using gcc-5.1, > but DXEs with gcc-4.7.3. > > DXE files without unresolved references seem to work. > > Andris Impossibly remote possibilty, in case your dxe3gen is compiled using an x64-hosted gcc5: I just replaced two remaining uses of 'long int' with LONG32 (also added compile time checks to coff.h and sys/dxe.h to ensure LONG32 is 32 bits). Does it make a difference? (I don't think so, but..)