gitignore *.so - #12
Open
viomck wants to merge 49 commits into
Open
Conversation
.word -> .2byte .short -> .2byte .long -> .4byte .quad -> .8byte Reference: rhboot@b83f084 Fixes: https://sourceforge.net/p/gnu-efi/bugs/37/ Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Use expression instead of variable for _data_size Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Using @ doesn't work on ARM32 Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
L_DYNAMIC must be 32bits to be PCREL Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Microsoft dumpbin doesn't like the binary if the full table doesn't exist Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Currently marked as NOTYPE Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Tells ld to define them after their markers Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
rodata should be split for security Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
ld writes .plt immediately after .text which corrupts the alignment of .reloc Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
- Make it actually work - Split text/data/reloc/rodata sections - Move hash sections to past end of image (un-needed in PE) - Correct section & file alignment - Correct image size - rename .reloc to .areloc within ELF as only on ARM32 does this name cause it to be marked as REL and subsequently mistakenly added to RELSZ Builds correctly & tested working in QEMU Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
- Make it actually work - Split text/data/reloc/rodata sections - Move hash sections to past end of image (un-needed in PE) - Correct section & file alignment - Correct image size Builds correctly but untested Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Sometimes ld emits relocs such as R_RISCV_64 for unwind symbols these don't need to be handled yet so just can be skipped otherwise the binary will never load Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Add macro EFI_NO_TAIL_CALL which disables tail call optimization on a per-function basis Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This is also useful in downstream projects so add it to public header Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: David Müller <d.mueller@elsoft.ch> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
For wildly unknown reasons, EFI Boot Services includes CopyMem() and SetMem() functions, and they are marked as EFIAPI functions. This patch marks gnu-efi's CopyMem() and SetMem() as EFIAPI functions, and makes their exposed API match the misguided nonsense in the EFI spec, so that they can be used there in a test environment. Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
This adds the definition for EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS. Signed-off-by: Peter Jones <pjones@redhat.com>
Turns out some linkers have set page size to 64K on ARM32 aswell so apply the same fix as ARM64 Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Avoid conflict with other libraries Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Added CHAR8, CHAR16, WCHAR and VOID type definitions for LoongArch
Binutils 2.41 now supports efi-app-loongarch64, so to use this we must add a dummy reloc section and remove the PE header definition from crt0 as this will conflict with the version added by objcopy Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Remove end padding Change start padding to 16 Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
The PE32 header means code ends at end of text, unlike ELF where its mostly dynamic Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
While binutils 2.25 incorrectly changed the page size to 64K, the second part of that fix prevents the bug anyways Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Signed-off-by: Richard Hughes <richard@hughsie.com>
This makes our "make clean" commands show what they've /removed/, rather than what the shell code that will be run is. Signed-off-by: Richard Hughes <richard@hughsie.com> Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Richard Hughes <richard@hughsie.com> Signed-off-by: Peter Jones <pjones@redhat.com>
these files get generated in the build process and are not ignored
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
these files get generated in the build process and are not ignored