From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=LAYiIy7A; spf=pass (domain: linaro.org, ip: 209.85.166.44, mailfrom: ard.biesheuvel@linaro.org) Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) by groups.io with SMTP; Fri, 14 Jun 2019 12:44:00 -0700 Received: by mail-io1-f44.google.com with SMTP id u19so8244487ior.9 for ; Fri, 14 Jun 2019 12:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5FyU8J41tHr/zekzbQSJVYRWcPvjUsExFg7Rp1hgxp4=; b=LAYiIy7AUhR1hQM8O6aWvLgwsF//cbNacHNawWsbQ1983SbtDMbA6eB43uKM61SQOy xJlBICZSVpYH4/kIuHXlLm6uLYYlCePDLpi/DVFduJeOtYU5gZd7PoH4276QKppLtjY/ PuK3xQsns4ga2wsqEfZQxef6D8pYsSe6qkH6UPSnNIi+tBDfSgfntko9Uy/Vdz1CU0vm 8qFm3OxSizyUVk6/phYP1OmqjLgKm2J/0pkSsXVuJnv02u8rGsWybDTOvm2vwXaScM6+ KjvU5NVRW1R3l0iovyNvVz82P2AIDh8ly/t7nnHLGXbnxJV414EXNybDk5qcLmeVkzQz bHzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5FyU8J41tHr/zekzbQSJVYRWcPvjUsExFg7Rp1hgxp4=; b=g/d+4yz3ztrUP1Cj4jAYy2OLaX5m/B7RdkSRrb/Xo3ztZ+7aeP3H6qf1sJsapjqJa9 RRmoppxpwgT/JYvj5hnQF7kuUK54jHavZNqD8rBXEJ2L16omnnObrJw0uWk7uw7rE9c1 cj8xGCkGSY1EUnrId/P8xaOh6/qnC6YR6YdxSK9aLA90UMUr/yZQwj91gYHtlUPO0gzl mA6ZsYCXMbIm3lCQ6IOC7hIfRAW9iSukSAqLsu1EnlZdodoAVUPY/LURgWMGNyikXS1j M06KDAEc85gMuyIZv+zIjSwUVRAB2Z5Pj6HPOAbTyLE5jjkflH5hD3Ns27J3SWo1E30m gyDg== X-Gm-Message-State: APjAAAX7VmyglrdrpPdG3GfDcyOKpIYY8Wqj4NK99CFmtXNnFw4DyNSL FVSpJBMKLnNQvaopC+gWisKMJ23XWk/P5GTs/pGJkyQwOJ6OkA== X-Google-Smtp-Source: APXvYqyfj76x+qcHDH2fvX/VQvqcwDqwTvgKC9RZcLtgpo+ywRiOSIF/HJwF0CrlpfMPCQl11bNv5W9GyQN4ToekPJY= X-Received: by 2002:a02:a815:: with SMTP id f21mr26083652jaj.130.1560541439797; Fri, 14 Jun 2019 12:43:59 -0700 (PDT) MIME-Version: 1.0 References: <250c832b-150d-e63a-761c-8ac1666fbd80@redhat.com> In-Reply-To: <250c832b-150d-e63a-761c-8ac1666fbd80@redhat.com> From: "Ard Biesheuvel" Date: Fri, 14 Jun 2019 21:43:48 +0200 Message-ID: Subject: Re: [edk2-devel] [edk2-discuss] WriteSections64() To: edk2-devel-groups-io , Laszlo Ersek Cc: discuss@edk2.groups.io, russell@mellanox.com Content-Type: text/plain; charset="UTF-8" On Fri, 14 Jun 2019 at 21:17, Laszlo Ersek wrote: > > +Ard, +devel > > On 06/13/19 17:29, Russell Peterson wrote: > > Hello, > > > > We are in the process of upgrading our gcc toolchain to gcc 8.3 (from 7.3). In the process of doing that we have hit an error building edk2: > > > > make[2]: *** [/home/x/RELEASE_GCC5/AARCH64/MdeModulePkg/Universal/Network/DpcDxe/DpcDxe/DEBUG/DpcDxe.efi] Error 1 > > WriteSections64(): /home/x/RELEASE_GCC5/AARCH64/MdeModulePkg/Universal/Network/DpcDxe/DpcDxe/DEBUG/DpcDxe.dll AARCH64 relative relocations require identical ELF and PE/COFF section offsets > > > > There are multiple errors similar to this issued by GenFw. Our edk2 version is fairly recent (UDK2018 upstream branch as of commit 10318063b) but all this did build fine with gcc 7.3. Any clues? > > Your Conf/tools_def.txt is probably stale, and does not contain the -fno-pie option we added a while ago.