Skip to content

Commit

Permalink
elf_loongarch64_efi.lds: Merge all rela sections into one
Browse files Browse the repository at this point in the history
- Merge ctors/dtors rela sections
- Ensure objcopy sections are aligned
  • Loading branch information
yetist committed May 18, 2023
1 parent f6bdc67 commit e38292f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions gnuefi/elf_loongarch64_efi.lds
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,21 @@ SECTIONS
_bss_end = .;
}

.rela.dyn : { *(.rela.dyn) }
. = ALIGN(4096);
.rela :
{
*(.rela.text*)
*(.rela.data*)
*(.rela.got)
*(.rela.dyn)
*(.rela.stab)
*(.rela.init_array)
*(.rela.fini_array)
*(.rela.ctors)
*(.rela.dtors)
}
. = ALIGN(4096);
.rela.plt : { *(.rela.plt) }
.rela.got : { *(.rela.got) }
.rela.data : { *(.rela.data) *(.rela.data*) }
. = ALIGN(512);
_edata = .;
_data_size = . - _data;
Expand Down

0 comments on commit e38292f

Please sign in to comment.