Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel relocs and gold linker #16

Open
sarnold opened this issue Oct 12, 2019 · 1 comment
Open

Kernel relocs and gold linker #16

sarnold opened this issue Oct 12, 2019 · 1 comment
Labels

Comments

@sarnold
Copy link

sarnold commented Oct 12, 2019

This has come up before for certain arches/configs, and still happens with 5.3.x and x86_64 if the default linker is set to gold, ie, something like:

  CALL    scripts/atomic/check-atomics.sh
  DESCEND  objtool
  CHK     include/generated/compile.h
  VDSOCHK arch/x86/entry/vdso/vdso64.so.dbg
  VDSOCHK arch/x86/entry/vdso/vdso32.so.dbg
  CHK     kernel/kheaders_data.tar.xz
  CC      arch/x86/boot/compressed/misc.o
  RELOCS  arch/x86/boot/compressed/vmlinux.relocs
Invalid absolute R_X86_64_32S relocation: __end_of_kernel_reserve
make[2]: *** [arch/x86/boot/compressed/Makefile:130: arch/x86/boot/compressed/vmlinux.relocs] Error 1
make[2]: *** Deleting file 'arch/x86/boot/compressed/vmlinux.relocs'
make[1]: *** [arch/x86/boot/Makefile:112: arch/x86/boot/compressed/vmlinux] Error 2
make: *** [arch/x86/Makefile:316: bzImage] Error 2

as well as failures building the VDSO.

In the past I've patched a makefile or two to force ld.bfd in the fail location, but based on the kernel thread discussion I think it's probably better to just force ld.bfd for the kernel build, so I added it to the "make" line in buildkernel:

    # setup make with specified niceness
    MAKE="nice -n ${ADJUSTMENT} make LD=ld.bfd"

The failure still depends on arch/config options (so is somewhat intermittent) and the above seems like the safest fix for now.

@sakaki-
Copy link
Owner

sakaki- commented Oct 31, 2020

31 Oct 2020: sadly, due to legal obligations arising from a recent change in my 'real world' job, I must announce I am standing down as maintainer of this project with immediate effect. For the meantime, I will leave the repo up (for historical interest, and since the ebuilds etc. may be of use to others); however, I plan no further updates, nor will I be accepting / actioning further pull requests or bug reports from this point. Email requests for support will also have to be politely declined, so, please treat this as an effective EOL notice.

For further details, please see my post here.

If you have used my EFI Guide (and this repo) to install your PC-based Gentoo system, it should still continue to work for some time, but you should now take steps to migrate to a baseline Gentoo Handbook install (since the underlying tools, such as buildkernel, will also now no longer be supported and may eventually fail as more modern kernels etc. are released).

With sincere apologies, sakaki ><

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants