Files
ftmemsim-valgrind/coregrind/x86/Makefile.am
Jeremy Fitzhardinge 1f4c6deede Auto-generate stage2.lds so that the linker script matches the local
linker.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2122
2003-12-16 22:26:45 +00:00

21 lines
428 B
Makefile

noinst_HEADERS = \
ume_archdefs.h
EXTRA_DIST = \
Make.inc \
ume_archdefs.c \
ume_archdefs.h \
ume_entry.S \
ume_go.c
BUILT_SOURCES = stage2.lds
CLEANFILES = stage2.lds
# Extract ld's default linker script and hack it to our needs
stage2.lds: Makefile
ld --verbose | sed \
-e '1,/^=====\+$$/d' \
-e '/^=====\+$$/d' \
-e 's/ENTRY(_start)/ENTRY(_ume_entry)/' \
-e 's/0x08048000/kickstart_base/' > $@ || rm -f $@