Messages in this thread | | | From | Sedat Dilek <> | Date | Tue, 26 May 2020 18:18:07 +0200 | Subject | Re: [PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel |
| |
On Tue, May 26, 2020 at 5:07 PM Sedat Dilek <sedat.dilek@gmail.com> wrote:
...
> > > patchset to previous build: > > > > > > $ git log --no-merges --oneline 5.7.0-rc7-1-amd64-clang..5.7.0-rc7-2-amd64-clang > > > 8b74901cb9e5 (for-5.7/x86-boot-remove-runtime-relocations-from-compressed-kernel-v2-nivedita76) > > > x86/boot: Check that there are no runtime relocations > > > 83fb1bc3b076 x86/boot: Remove runtime relocations from head_{32,64}.S > > > fede23dacbbd x86/boot: Remove run-time relocations from .head.text code > > > 3e5ea481b8fb x86/boot: Add .text.* to setup.ld > > > bec910ba3d67 x86/boot/compressed: Get rid of GOT fixup code > > > be834cee6f39 x86/boot/compressed: Force hidden visibility for all > > > symbol references > > > 9b7c7d8d2d7b x86/boot/compressed: Move .got.plt entries out of the .got section > > > ba6a49f806a0 (for-5.7/kbuild-compressed-debug-info) Makefile: support > > > compressed debug info > > > a1fb11944d11 (for-5.7/x86-boot-nivedita76) x86/boot: Correct > > > relocation destination on old linkers > > > c70e3890058f (for-5.7/x86-build-maskray) x86/boot: Discard > > > .discard.unreachable for arch/x86/boot/compressed/vmlinux
...
> This works: > > [ arch/x86/boot/compressed/Makefile ] > > -KBUILD_CFLAGS += -include hidden.h > +KBUILD_CFLAGS += -include ./arch/x86/boot/compressed/hidden.h > > $ ll arch/x86/boot/bzImage arch/x86/boot/compressed/vmlinux > -rw-r--r-- 1 dileks dileks 6,5M Mai 26 17:05 arch/x86/boot/bzImage > -rwxr-xr-x 1 dileks dileks 6,5M Mai 26 17:05 arch/x86/boot/compressed/vmlinux >
I was able to build/link and boot on bare metal.
root@iniza:~# cat /proc/version Linux version 5.7.0-rc7-2-amd64-clang (sedat.dilek@gmail.com@iniza) (clang version 10.0.1rc1, LLD 10.0.1rc1) #2~bullseye+dileks1 SMP 2020-05-26
- Sedat -
| |