[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels
From: |
ard.biesheuvel at linaro dot org |
Subject: |
[Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu |
Date: |
Fri, 02 Feb 2018 16:59:55 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22764
--- Comment #8 from Ard Biesheuvel <ard.biesheuvel at linaro dot org> ---
(In reply to Andrew Pinski from comment #7)
> (In reply to Matthias Klose from comment #6)
> > systemd on aarch64 configured with efi support fails with a similar
> > relocation error:
> >
> > ld -o src/boot/efi/systemd_boot.so -T /usr/lib/elf_aarch64_efi.lds -shared
> > -Bsymbolic -nostdlib -znocombreloc -L /usr/lib /usr/lib/crt0-efi-aarch64.o
> > --defsym=EFI_SUBSYSTEM=0xa src/boot/efi/disk.c.o src/boot/efi/graphics.c.o
> > src/boot/efi/measure.c.o src/boot/efi/pe.c.o src/boot/efi/util.c.o
> > src/boot/efi/boot.c.o src/boot/efi/console.c.o src/boot/efi/shim.c.o -lefi
> > -lgnuefi /usr/lib/gcc/aarch64-linux-gnu/7/libgcc.a
> > ld: /usr/lib/crt0-efi-aarch64.o: relocation R_AARCH64_ABS16 against
> > `EFI_SUBSYSTEM' can not be used when making a shared object
>
> This is a bug in either in gnu-efi or systemd. EFI_SUBSYSTEM is in the
> pe-coff header so we don't want any relocation there :). Basically
> EFI_SUBSYSTEM is not being defined. Note Uboot has a similar bug too.
The PE/COFF header is part of the static GNU=EFI library, and uses a static
relocation to populate the efi subsystem field when incorporated into a EFI
executable. The ELF spec allows this, so if there is a bug here, it is in
ld.bfd not in GNU-EFI, systemd or u-boot.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu, doko at debian dot org, 2018/02/02
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu, doko at debian dot org, 2018/02/02
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu, pinskia at gcc dot gnu.org, 2018/02/02
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu,
ard.biesheuvel at linaro dot org <=
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu, renlin.li at arm dot com, 2018/02/02
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu, ard.biesheuvel at linaro dot org, 2018/02/02
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu, egeyar.bagcioglu at oracle dot com, 2018/02/03
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu, arnd at arndb dot de, 2018/02/05
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu, renlin.li at arm dot com, 2018/02/05
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu, renlin.li at arm dot com, 2018/02/05
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu, cvs-commit at gcc dot gnu.org, 2018/02/05
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu, cvs-commit at gcc dot gnu.org, 2018/02/05
- [Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu, pbrobinson at gmail dot com, 2018/02/22