aboutsummaryrefslogtreecommitdiff
path: root/src/entryfuncs.S
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-06-10 21:56:01 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-06-10 21:56:01 -0400
commitc0693941fdb5118164a8161316fdf8e9ebb499d2 (patch)
tree4c2ed73a666bed4a8742453262c5899f77f7bfde /src/entryfuncs.S
parent0b04b78972939b8bf00c6b075b3592ea6b7dd643 (diff)
downloadseabios-hppa-c0693941fdb5118164a8161316fdf8e9ebb499d2.zip
seabios-hppa-c0693941fdb5118164a8161316fdf8e9ebb499d2.tar.gz
seabios-hppa-c0693941fdb5118164a8161316fdf8e9ebb499d2.tar.bz2
Do garbage collection of unused sections.
Implement -ffunction-sections and -fdata-sections in both 32bit and 16bit code. Make sure all sections have unique names (even asm and discarded sections). Enhance tools/layoutrom.py script to find all sections reachable from exported 16bit code - prune all other sections. Mark sections with "export" if they can be visible outside of code - these sections wont be dropped when pruning unused sections.
Diffstat (limited to 'src/entryfuncs.S')
-rw-r--r--src/entryfuncs.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/entryfuncs.S b/src/entryfuncs.S
index 65218e3..3c29b3f 100644
--- a/src/entryfuncs.S
+++ b/src/entryfuncs.S
@@ -165,3 +165,9 @@
.section .text.asm.\func
.global \func
.endm
+
+ // Declare an exported function
+ .macro EXPORTFUNC func
+ .section .text.asm.export.\func
+ .global \func
+ .endm