Many Kudos go to Segher Boessenkool and Patrick Georgi for figuring this one
out. Fix the libgcc dependency on abort() due to nested functions. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4326 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
41216225a1
commit
608762793a
|
@ -8,6 +8,7 @@ object ppc.o
|
||||||
object timebase.S
|
object timebase.S
|
||||||
object floats.S
|
object floats.S
|
||||||
object div64.S
|
object div64.S
|
||||||
|
object abort.o
|
||||||
initobject pci_dev.o
|
initobject pci_dev.o
|
||||||
initobject printk_init.o
|
initobject printk_init.o
|
||||||
initobject timebase.S
|
initobject timebase.S
|
||||||
|
@ -15,3 +16,4 @@ initobject timer.o
|
||||||
initobject floats.S
|
initobject floats.S
|
||||||
initobject div64.S
|
initobject div64.S
|
||||||
initobject ppc.o
|
initobject ppc.o
|
||||||
|
initobject abort.o
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
/*
|
||||||
|
* This file is part of the coreboot project.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2009 coresystems GmbH
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; version 2 of the License.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* gcc produces calls to an abort function in their trampoline code on powerpc
|
||||||
|
* 32bit platforms.
|
||||||
|
* This trampoline code is emitted for example in nested functions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
void abort(void)
|
||||||
|
{
|
||||||
|
/* We would want to call die() here, but it might not be available at
|
||||||
|
* this point, so for now we have to die silently.
|
||||||
|
*/
|
||||||
|
for (;;) ;
|
||||||
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ end
|
||||||
|
|
||||||
makerule coreboot_ram.o
|
makerule coreboot_ram.o
|
||||||
depends "src/arch/$(ARCH)/lib/c_start.o $(DRIVER) coreboot.a $(LIBGCC_FILE_NAME)"
|
depends "src/arch/$(ARCH)/lib/c_start.o $(DRIVER) coreboot.a $(LIBGCC_FILE_NAME)"
|
||||||
action "$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ $^"
|
action "$(CC) $(DISTRO_LFLAGS) -nostdlib -r -o $@ src/arch/$(ARCH)/lib/c_start.o $(DRIVER) -Wl,-\( coreboot.a $(LIBGCC_FILE_NAME) -Wl,-\)"
|
||||||
end
|
end
|
||||||
|
|
||||||
makerule coreboot_ram
|
makerule coreboot_ram
|
||||||
|
|
Loading…
Reference in New Issue