This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RELASZ is set to 0 on x86_64 when developing EFI applications with gnu-efi

On Fri, Jun 6, 2014 at 12:21 AM, éæ <> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]