(Related to D13941)
When building loader bits, lld fails with the following error: ld: error: section: .dynamic is not contiguous with other relro sections on both ubldr and EFI loader.
Move .dynamic up to make ld.lld happy, adjust .got as necessary for ubldr.
Tested on: OrangePi One (ld.lld, ubldr)
Tested on: Banana Pi-M3 (ld.lld, ubldr)
Tested on: qemu-armv7 (ld.lld, EFI)
Tested on: qemu-armv7 (ld.bfd, EFI)
Tested on: Raspberry Pi 2 (ld.bfd, ubldr) [manu]
Tested on: Banana Pi-M2 (ld.bfd, ubldr) [manu]
Aside: I don't have any armv7 EFI stuff to test boot with, so coverage for that change is lacking. I also haven't checked that that change still builds with ld.bfd, but I have no reason to think it wouldn't.
The only other outstanding issue I've come across is that ld.lld isn't currently setting VFP flag, as diagnosed with this patch by @andrew - https://people.freebsd.org/~andrew/0001-Also-set-the-EF_ARM_VFP_FLOAT-flag.patch -- things otherwise seem good for LLD_BOOTSTRAP.