aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-06-09 14:37:23 -0400
committerKevin O'Connor <kevin@koconnor.net>2014-06-11 14:55:56 -0400
commitee952534039b32049404f26ccaae1b034f7e876b (patch)
treec62d3b22673b3997074b2bc732708c4337c11358 /src
parentc228d7047331caba6b993a0c5c47bfb508a3396c (diff)
downloadseabios-hppa-ee952534039b32049404f26ccaae1b034f7e876b.zip
seabios-hppa-ee952534039b32049404f26ccaae1b034f7e876b.tar.gz
seabios-hppa-ee952534039b32049404f26ccaae1b034f7e876b.tar.bz2
build: Use customized entry point for each type of build.
Set an appropriate elf entry point (entry_elf, entry_csm, reset_vector) for each type of build (coreboot, csm, qemu). Use that entry point when determining which sections to keep. Also, remove the '.export.' mechanism to keep a section in the final binary - it is no longer used. This allows the build to slightly reduce the overall size as entry_elf is no longer needed on non-coreboot builds and entry_csm is no longer needed on non-csm builds. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/entryfuncs.S6
-rw-r--r--src/romlayout.S4
2 files changed, 2 insertions, 8 deletions
diff --git a/src/entryfuncs.S b/src/entryfuncs.S
index ea6f990..679b1fc 100644
--- a/src/entryfuncs.S
+++ b/src/entryfuncs.S
@@ -149,9 +149,3 @@
.section .text.asm.\func
.global \func
.endm
-
- // Declare an exported function
- .macro EXPORTFUNC func
- .section .text.asm.export.\func
- .global \func
- .endm
diff --git a/src/romlayout.S b/src/romlayout.S
index 8071963..a931b32 100644
--- a/src/romlayout.S
+++ b/src/romlayout.S
@@ -440,7 +440,7 @@ entry_bios32:
lretl
// 32bit elf entry point
- EXPORTFUNC entry_elf
+ DECLFUNC entry_elf
entry_elf:
cli
cld
@@ -458,7 +458,7 @@ entry_elf:
.code16
// UEFI Compatibility Support Module (CSM) entry point
- EXPORTFUNC entry_csm
+ DECLFUNC entry_csm
entry_csm:
// Backup register state
pushfw