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=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=poET74nOLbPf/yvv9agQySAi9mKhfQknsrm9ADKLdfg=; b=bA37zHSBp+Kyeb0VDcJSk8mKwAwiRKmfuglvHIiliPrnviF5qAyTrHQs/AcDfR6lNd 5H/mOVMb0g246X2+bzygkj11AG0/2tKWR+dQCQ6Yn8CtQeUbDCFoDeQstp5d8hW8t+dq e3fbtjzK086mZQVEMoEasM6AtFbW1ZmTIgo9Ucb9zR+MUcBg+29L/OwpzUqwugF+cfdk +CbXyo6BOvoFbs86DOr9AJ5EDyIiO1k0KGUN3+w+3G15A1abe64HQQivONtIyOV5L9VL vHXkr77qGbPzY8HgKl7kOISNQtREj5Tn/vqfvsnHYjx3bt6injAEo27hD/FFo8ahR0li FgjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=poET74nOLbPf/yvv9agQySAi9mKhfQknsrm9ADKLdfg=; b=WC1Y1McI4hLQT9Ws/TCOksPOT4CH9wXheWTA7eWvwD/5NyX2w795hOYe+zHQKTFUxe 1VSuc0RNM1mtZoILROrkxaTIVbFKb0ZJNeltLqRjoWMuocBNs/sUGh1F6eYznpMVIGgy yg9yqeoHis7cdWL93ffAQjgYV+201YFoQhVeuD4o+k/Ut4ybjosHRflXUrDcp+TF+9Xi T5VerDFVMyG0ukybk+3qghrR/rqPNG3jC4WpOUWMTh+4p+9UTD7z5A1sXJQWqnRG78hp Tqoxf9FeVQYaVbB+3MDW4zR4oKw3D4ECt32dPJoaAcxEIKgjVQofHbZOO3ZUIMOhoso8 IYVA== X-Gm-Message-State: AIkVDXJ12ObfR1y23y4Y/3PUsrZOsqu1VK1/FGOl0OhGvcwb7J/YOgrhMEaeZMwP9icevl9EJh+FdJ8so330Sg== X-Received: by 10.28.137.203 with SMTP id l194mr21480800wmd.63.1486021294666; Wed, 01 Feb 2017 23:41:34 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <201608092002 DOT u79K2qLm008342 AT delorie DOT com> From: "Andrew Wu (andrewwu DOT tw AT gmail DOT com) [via djgpp AT delorie DOT com]" Date: Thu, 2 Feb 2017 15:41:34 +0800 Message-ID: Subject: Re: ANNOUNCE: DJGPP port of GNU binutils 2.27 uploaded. 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 I think this patch for gnu/binutils-2.27/bfd/init.c can fix the cross build problem : ================= --- init.c.bak 2017-01-31 19:11:07.478074684 +0000 +++ init.c 2017-01-31 19:24:23.798041848 +0000 @@ -25,9 +25,7 @@ /* This controls if the coff 64k support shall be disabled or not. By default always enabled. */ -#if defined(__DJGPP__) || defined(COFF_GO32_EXE) || defined(COFF_GO32) bfd_boolean coff_64k_relocation_enabled = TRUE; -#endif /* SECTION ================= This patch always defines the global variable coff_64k_relocation_enabled . Tested on Linux and OSX. 2016-08-12 5:51 GMT+08:00 Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp AT delorie DOT com] : > On 8/9/16, Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via > djgpp-announce AT delorie DOT com] wrote: >> This is a port of GNU binutils 2.27 to MSDOS/DJGPP. > [...] >> - The support of more than 64k relocations can be disable by defining the >> DISABLE_64K_RELOC_SUPPORT environment variable to either y or Y. > > Building this as part of a djgpp cross-toolchain fails: > > ../bfd/.libs/libbfd.a(coff-go32.o): In function `coff_swap_scnhdr_in': > /b227/bfd/coffswap.h:775: undefined reference to `coff_64k_relocation_enabled' > ../bfd/.libs/libbfd.a(coff-go32.o): In function `coff_swap_scnhdr_out': > /b227/bfd/coffswap.h:815: undefined reference to `coff_64k_relocation_enabled' > ../bfd/.libs/libbfd.a(coff-go32.o): In function `coff_set_alignment_hook': > /b227/bfd/coffcode.h:1990: undefined reference to `coff_64k_relocation_enabled' > ../bfd/.libs/libbfd.a(coff-stgo32.o): In function `_bfd_go32_mkobject': > /b227/bfd/coff-stgo32.c:454: undefined reference to > `coff_64k_relocation_enabled' > ../bfd/.libs/libbfd.a(coff-stgo32.o): In function `coff_swap_scnhdr_in': > /b227/bfd/coffswap.h:775: undefined reference to `coff_64k_relocation_enabled' > ../bfd/.libs/libbfd.a(coff-stgo32.o):/b227/bfd/coffswap.h:815: more > undefined references to `coff_64k_relocation_enabled' follow > collect2: ld returned 1 exit status > make[4]: *** [as-new] Error 1 > > This is because coff_64k_relocation_enabled is in init.c, __DJGPP__ is > not defined (because this is a cross build), nor are COFF_GO32* defined > not as far as init.c knows, as those are defined only in coff-go32.c and > init.c cannot know such a thing. I do not have a patch for fixing this > mess, yet. > > -- > O.S.