From 1fdc622a1e3e894587d1708da66c209aaff033ad Mon Sep 17 00:00:00 2001 From: Andrew Ip Date: Sun, 10 Nov 2002 06:30:18 +0000 Subject: [PATCH] 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 --- src/config/linuxbios_c.ld | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/config/linuxbios_c.ld b/src/config/linuxbios_c.ld index ff327d65a3..62be1c34f8 100644 --- a/src/config/linuxbios_c.ld +++ b/src/config/linuxbios_c.ld @@ -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 = .; } /*