Andrew Pinski <pinskia at gcc dot> changed:

           What    |Removed                     |Added
                 CC|                            |pinskia at gcc dot

--- Comment #7 from Andrew Pinski <pinskia at gcc dot> ---
(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/ -T /usr/lib/ -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.

You are receiving this mail because:
You are on the CC list for the bug.
bug-binutils mailing list

Reply via email to