This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RELASZ is set to 0 on x86_64 when developing EFI applications with gnu-efi
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: éæ <yanmiaobest at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Fri, 6 Jun 2014 08:08:42 -0700
- Subject: Re: RELASZ is set to 0 on x86_64 when developing EFI applications with gnu-efi
- Authentication-results: sourceware.org; auth=none
- References: <CAPc5xaNRCsvytiQKi52Kkimk_Qs5cFRycCy3y0hTUBNYZOb-RQ at mail dot gmail dot com>
On Fri, Jun 6, 2014 at 12:21 AM, éæ <yanmiaobest@gmail.com> wrote:
> Hi Experts,
>
> I am developing EFI applications using gnu-efi library and I
> need to use some of the existing code base which groups initialization
> functions together in a special section.
>
> The gnu-efi library uses the symbol _DYNAMIC to locate the
> relocation section and does fixups before calling main. Without the
> special section for init functions, there is only a '.rela' section
> pointed by _DYMAMIC and everything works fine. But after I modified
> the default linker script, the produced ELF image contains 2
> relocation sections:
> --------------------------------------------------------------------------------------------------------------
> Relocation section '.rela.dyn' at offset 0x23850 contains 1 entries:
> Offset Info Type Sym. Value Sym. Name + Addend
> 000000027de0 000000000008 R_X86_64_RELATIVE 000000000000b7d0
>
What change you made causes rela.dyn section?
--
H.J.