mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
There was a serious problem in the ldsetup scripts. If the BIOS contained an odd length rodata, LD would make a bad stripped file. The objcopy tool deals poorly with sections that are not longword aligned. This resulted in the BIOS almost working, but it would be referencing the wrong offsets for some key data. by Kevin Hester
This commit is contained in:
parent
1d729b4ebe
commit
1fdc622a1e
1 changed files with 7 additions and 0 deletions
|
@ -53,6 +53,13 @@ SECTIONS
|
|||
epci_drivers = . ;
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
/*
|
||||
* kevinh/Ispiri - Added an align, because the objcopy tool
|
||||
* incorrectly converts sections that are not long word aligned.
|
||||
* This breaksthe linuxbios.strip target.
|
||||
*/
|
||||
. = ALIGN(4);
|
||||
|
||||
_erodata = .;
|
||||
}
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue