Skip to content

Commit

Permalink
ia32 local: Rename reloc to areloc
Browse files Browse the repository at this point in the history
* Similar to ARM32, this triggers a GNU AS section parameters warning if called reloc
* This breaks IA32 objcopy due to .reloc lookup

Signed-off-by: Callum Farmer <[email protected]>
  • Loading branch information
gmbr3 committed Oct 24, 2024
1 parent ae94e38 commit 40b0203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gnuefi/crt0-efi-ia32-local.S
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ dummy0: .4byte 0
dummy1: .4byte 0

#define IMAGE_REL_ABSOLUTE 0
.section .reloc, "a", %progbits
.section .areloc, "a", %progbits
.4byte dummy1 - dummy0 // Page RVA
.4byte 12 // Block Size (2*4+2*2), must be aligned by 32 Bits
.2byte (IMAGE_REL_ABSOLUTE<<12) + 0 // reloc for dummy
Expand Down
4 changes: 2 additions & 2 deletions gnuefi/elf_ia32_efi_local.lds
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ SECTIONS
_text_size = _etext - _text;
. = ALIGN(4096);
_reloc = .;
.reloc : {
*(.reloc)
.areloc : {
*(.areloc)
_evreloc = .;
. = ALIGN(4096);
_ereloc = .;
Expand Down

0 comments on commit 40b0203

Please sign in to comment.