arch/m68k-amiga: Experiment with localizing unwanted exported symbols
commit13775bd23d595d2922190b6075bf29835118f89e
authorjmcmullan <jmcmullan@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 3 Jul 2011 12:59:31 +0000 (3 12:59 +0000)
committerjmcmullan <jmcmullan@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 3 Jul 2011 12:59:31 +0000 (3 12:59 +0000)
tree4cf9e146c0278c672c166085f333700fc910f28a
parent97422e052a66d2ca41f9a1e934cf895e4b0023ef
arch/m68k-amiga: Experiment with localizing unwanted exported symbols

To make it easier to handle new kernel modules, without worrying
about their global symbols (ie function names and const data) clashing
with each other, we can use the objcopy --localize-symbols feature
to convert our kobj .o files to .ko files, which only have their
unresolved symbols exposed (ie things they need from -lamiga and -lrom).

Eventually, we should disentangle kernel.resource and exec.library
from the m68k boot code, but that is a big task for another day.

For now, we can safely localize everything else, and still retain working
debug symbols.

If other architectures find this useful, this technique could easily be
moved to config/make.tmpl

Signed-off-by: Jason S. McMullan <jason.mcmullan@netronome.com>
git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@39761 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
arch/m68k-amiga/boot/mmakefile.src