History log of /DragonStub/gnuefi/ (Results 1 – 25 of 59)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
cd78649306-Jul-2023 Callum Farmer <gmbr3@opensuse.org>

ARM32: Only use 4K pages

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>

708f66ac21-Jun-2023 Callum Farmer <gmbr3@opensuse.org>

riscv64: ignore unknown relocs

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-

riscv64: ignore unknown relocs

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>

show more ...

58dce69916-Jun-2023 Callum Farmer <gmbr3@opensuse.org>

riscv64: fix image

- 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 si

riscv64: fix image

- 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>

show more ...

50b27a8515-Jun-2023 Callum Farmer <gmbr3@opensuse.org>

ARM32: fix image

- 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

ARM32: fix image

- 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>

show more ...

8abf159d19-Jun-2023 Callum Farmer <gmbr3@opensuse.org>

Merge .plt into .text

ld writes .plt immediately after .text
which corrupts the alignment of .reloc

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

b3e80c3813-Jun-2023 Callum Farmer <gmbr3@opensuse.org>

Split out rodata

rodata should be split for security

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

2011093513-Jun-2023 Callum Farmer <gmbr3@opensuse.org>

Clean up size symbols

Tells ld to define them after their markers

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

64027ee907-Jun-2023 Callum Farmer <gmbr3@opensuse.org>

Mark _start as function

Currently marked as NOTYPE

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

db351e8a02-Jun-2023 Callum Farmer <gmbr3@opensuse.org>

ARM32: _start must be global

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

039ca9d931-May-2023 Callum Farmer <gmbr3@opensuse.org>

Add full Data Directories table

Microsoft dumpbin doesn't like the binary if
the full table doesn't exist

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

0fe8def923-May-2023 Callum Farmer <gmbr3@opensuse.org>

ARM32: fix L_DYNAMIC

L_DYNAMIC must be 32bits to be PCREL

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

d96b34e020-May-2023 Callum Farmer <gmbr3@opensuse.org>

riscv: Use new ctors _entry func as entry point

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

d8e6b53120-May-2023 Callum Farmer <gmbr3@opensuse.org>

riscv64 lds: fix ctors/dtors

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

1e0f0df520-May-2023 Callum Farmer <gmbr3@opensuse.org>

riscv: Avoid TEXTREL

Use expression instead of variable for _data_size

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

9e6cb21520-May-2023 Callum Farmer <gmbr3@opensuse.org>

Avoid processor dependent sizes in assembly

.word -> .2byte
.short -> .2byte
.long -> .4byte
.quad -> .8byte

Reference: https://github.com/rhboot/gnu-efi/commit/b83f0845b556506265d25d6a839a23c77b03

Avoid processor dependent sizes in assembly

.word -> .2byte
.short -> .2byte
.long -> .4byte
.quad -> .8byte

Reference: https://github.com/rhboot/gnu-efi/commit/b83f0845b556506265d25d6a839a23c77b037ae4
Fixes: https://sourceforge.net/p/gnu-efi/bugs/37/

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

show more ...

9dbfe1c303-May-2023 Callum Farmer <gmbr3@opensuse.org>

Align all ctors/dtors start to 16

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

9c5403e130-Apr-2023 Callum Farmer <gmbr3@opensuse.org>

Copy marker names from binutils for init/fini

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

e2aa099728-Apr-2023 Callum Farmer <gmbr3@opensuse.org>

lds: Support ctors/dtors with a priority

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

4c938fac28-Apr-2023 Callum Farmer <gmbr3@opensuse.org>

Merge ctors/dtors rela sections

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

bf6fd04021-Apr-2023 Callum Farmer <gmbr3@opensuse.org>

ia32: No sdata section

There is no small data section on ia32,
this ends up being created as ld puts .got/.got.plt
here due to first declaration

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

63a9a4d406-Apr-2023 Callum Farmer <gmbr3@opensuse.org>

Add pkgconfig file

Also add EXEC_PREFIX and INCLUDEDIR variables

This was requested by fwupd-efi, to be able
to retrieve the version number of gnu-efi
so we can detect features

Signed-off-by: Call

Add pkgconfig file

Also add EXEC_PREFIX and INCLUDEDIR variables

This was requested by fwupd-efi, to be able
to retrieve the version number of gnu-efi
so we can detect features

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

show more ...

4f8b339f28-Mar-2023 Peter Jones <pjones@redhat.com>

Make ELF constructors and destructors work

This makes setup and teardown functions defined with
__attribute__((__constructor__) and __attribute__((__destructor__)) work
in normal circumstances in EF

Make ELF constructors and destructors work

This makes setup and teardown functions defined with
__attribute__((__constructor__) and __attribute__((__destructor__)) work
in normal circumstances in EFI binaries.

A couple of notes:
- it implements both the old-style .ctors/.dtors methods and the newer
style .init_array/.fini_array ELF constructor and destructor arrays,
processed in the order:
.init_array[]
.ctors[]
efi_main()
.dtors[]
.fini_array[]
- Destructors will only be called if efi_main() exits using "return";
any call to Exit() will still longjmp() past them.
- InitializeLib() has already been called before constructors run, so
they don't need to call it (and neither does anything else.) For
compatibility, it has been altered so calling it more than once is
safe.
- No attempt is made to handle any constructor or destructor with a
prototype other than "void func(void);", but note that InitializeLib
has been called, so LibImageHandle, ST, BS, and RT are set.
- The init_array/ctor/dtor/fini_array lists aren't the using the GNU
"CONSTRUCTOR" output section command, so they don't start with a size.
- The lists are individually sorted during the link stage via
SORT_BY_NAME() in the linker script.
- The default (empty) init_array/ctor/dtor/fini_array lists are padded
out to 8-byte alignment with ".p2align 3, 0", and each list always has
at least one ".long 0" at the end of it (even if it's completely
empty). As a result, they can have NULLs that need to be skipped.
The sections they're in are mergeable, so the NULLs don't have to be
exclusively at the end.
- The ia64 and mips64el arches have not been tested.

Signed-off-by: Peter Jones <pjones@redhat.com>

show more ...

5e2444d123-Mar-2023 b'Nigel Croxon <allura@localhost>

Merge /u/gmbr3/gnu-efi/ branch gc-sections into master

https://sourceforge.net/p/gnu-efi/code/merge-requests/42/

bc233a7a22-Mar-2023 Callum Farmer <gmbr3@opensuse.org>

Prevent deletion of .reloc by gc-sections

Add keyword KEEP to prevent .reloc being removed
when using --gc-sections with GNU ld

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

7ad75d9109-Mar-2023 Callum Farmer <gmbr3@opensuse.org>

Ensure objcopy sections are aligned

Ensure the main sections are page aligned:
- .text
- .reloc
- .dynamic
- .data
- .rel
- .rel.plt

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>

123