Do garbage collection of unused sections.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 11 Jun 2009 01:56:01 +0000 (21:56 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 11 Jun 2009 01:56:01 +0000 (21:56 -0400)
commitc0693941fdb5118164a8161316fdf8e9ebb499d2
tree4c2ed73a666bed4a8742453262c5899f77f7bfde
parent0b04b78972939b8bf00c6b075b3592ea6b7dd643
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.
12 files changed:
Makefile
src/entryfuncs.S
src/layout16.lds.S
src/pirtable.c
src/pnpbios.c
src/rombios.lds.S
src/rombios32.lds.S
src/romlayout.S
src/smm.c
src/types.h
tools/layoutrom.py
vgasrc/vgalayout.lds.S