Line 1508... |
Line 1508... |
unused.o: unused.c
|
unused.o: unused.c
|
$(COMPILE) -c -o $@ $<
|
$(COMPILE) -c -o $@ $<
|
unused.c:
|
unused.c:
|
@cp /dev/null $@
|
@cp /dev/null $@
|
|
|
|
check_SCRIPTS += plugin_final_layout.sh
|
|
check_DATA += plugin_final_layout.stdout
|
|
plugin_final_layout.o: plugin_final_layout.cc
|
|
$(CXXCOMPILE) -O0 -c -ffunction-sections -fdata-sections -g -o $@ $<
|
|
plugin_final_layout: plugin_final_layout.o plugin_section_order.so gcctestdir/ld
|
|
$(CXXLINK) -Bgcctestdir/ -Wl,--plugin,"./plugin_section_order.so" plugin_final_layout.o
|
|
plugin_final_layout.stdout: plugin_final_layout
|
|
$(TEST_NM) -n plugin_final_layout > plugin_final_layout.stdout
|
|
|
|
plugin_section_order.so: plugin_section_order.o
|
|
$(LINK) -Bgcctestdir/ -shared plugin_section_order.o
|
|
plugin_section_order.o: plugin_section_order.c
|
|
$(COMPILE) -O0 -c -fpic -o $@ $<
|
|
|
endif PLUGINS
|
endif PLUGINS
|
|
|
check_PROGRAMS += exclude_libs_test
|
check_PROGRAMS += exclude_libs_test
|
check_SCRIPTS += exclude_libs_test.sh
|
check_SCRIPTS += exclude_libs_test.sh
|
check_DATA += exclude_libs_test.syms
|
check_DATA += exclude_libs_test.syms
|
Line 1662... |
Line 1676... |
$(COMPILE) -c -fpic -o $@ $<
|
$(COMPILE) -c -fpic -o $@ $<
|
ifuncmain1pie.o: ifuncmain1.c
|
ifuncmain1pie.o: ifuncmain1.c
|
$(COMPILE) -c -fpie -o $@ $<
|
$(COMPILE) -c -fpie -o $@ $<
|
|
|
if HAVE_STATIC
|
if HAVE_STATIC
|
|
if IFUNC_STATIC
|
check_PROGRAMS += ifuncmain1static
|
check_PROGRAMS += ifuncmain1static
|
ifuncmain1static_SOURCES = ifuncmain1.c
|
ifuncmain1static_SOURCES = ifuncmain1.c
|
ifuncmain1static_DEPENDENCIES = gcctestdir/ld ifuncdep1.o
|
ifuncmain1static_DEPENDENCIES = gcctestdir/ld ifuncdep1.o
|
ifuncmain1static_LDFLAGS = -Bgcctestdir/ -static
|
ifuncmain1static_LDFLAGS = -Bgcctestdir/ -static
|
ifuncmain1static_LDADD = ifuncdep1.o
|
ifuncmain1static_LDADD = ifuncdep1.o
|
|
|
check_PROGRAMS += ifuncmain1picstatic
|
check_PROGRAMS += ifuncmain1picstatic
|
ifuncmain1picstatic: ifuncmain1pic.o ifuncmod1.o gcctestdir/ld
|
ifuncmain1picstatic: ifuncmain1pic.o ifuncmod1.o gcctestdir/ld
|
$(LINK) -Bgcctestdir/ -static ifuncmain1pic.o ifuncmod1.o
|
$(LINK) -Bgcctestdir/ -static ifuncmain1pic.o ifuncmod1.o
|
endif
|
endif
|
|
endif
|
|
|
check_PROGRAMS += ifuncmain1
|
check_PROGRAMS += ifuncmain1
|
ifuncmain1_SOURCES = ifuncmain1.c
|
ifuncmain1_SOURCES = ifuncmain1.c
|
ifuncmain1_DEPENDENCIES = gcctestdir/ld ifuncmod1.so
|
ifuncmain1_DEPENDENCIES = gcctestdir/ld ifuncmod1.so
|
ifuncmain1_LDFLAGS = -Bgcctestdir/ -Wl,-R,.
|
ifuncmain1_LDFLAGS = -Bgcctestdir/ -Wl,-R,.
|
Line 1720... |
Line 1736... |
|
|
ifuncdep2pic.o: ifuncdep2.c
|
ifuncdep2pic.o: ifuncdep2.c
|
$(COMPILE) -c -fpic -o $@ $<
|
$(COMPILE) -c -fpic -o $@ $<
|
|
|
if HAVE_STATIC
|
if HAVE_STATIC
|
|
if IFUNC_STATIC
|
check_PROGRAMS += ifuncmain2static
|
check_PROGRAMS += ifuncmain2static
|
ifuncmain2static_SOURCES = ifuncmain2.c ifuncdep2.c
|
ifuncmain2static_SOURCES = ifuncmain2.c ifuncdep2.c
|
ifuncmain2static_DEPENDENCIES = gcctestdir/ld
|
ifuncmain2static_DEPENDENCIES = gcctestdir/ld
|
ifuncmain2static_LDFLAGS = -Bgcctestdir/ -static
|
ifuncmain2static_LDFLAGS = -Bgcctestdir/ -static
|
ifuncmain2static_LDADD =
|
ifuncmain2static_LDADD =
|
|
|
check_PROGRAMS += ifuncmain2picstatic
|
check_PROGRAMS += ifuncmain2picstatic
|
ifuncmain2picstatic: ifuncmain2pic.o ifuncdep2pic.o gcctestdir/ld
|
ifuncmain2picstatic: ifuncmain2pic.o ifuncdep2pic.o gcctestdir/ld
|
$(LINK) -Bgcctestdir/ -static ifuncmain2pic.o ifuncdep2pic.o
|
$(LINK) -Bgcctestdir/ -static ifuncmain2pic.o ifuncdep2pic.o
|
endif
|
endif
|
|
endif
|
|
|
check_PROGRAMS += ifuncmain2
|
check_PROGRAMS += ifuncmain2
|
ifuncmain2_SOURCES = ifuncmain2.c ifuncdep2.c
|
ifuncmain2_SOURCES = ifuncmain2.c ifuncdep2.c
|
ifuncmain2_DEPENDENCIES = gcctestdir/ld
|
ifuncmain2_DEPENDENCIES = gcctestdir/ld
|
ifuncmain2_LDFLAGS = -Bgcctestdir/
|
ifuncmain2_LDFLAGS = -Bgcctestdir/
|
Line 1756... |
Line 1774... |
|
|
ifuncmain4pic.o: ifuncmain4.c
|
ifuncmain4pic.o: ifuncmain4.c
|
$(COMPILE) -c -fpic -o $@ $<
|
$(COMPILE) -c -fpic -o $@ $<
|
|
|
if HAVE_STATIC
|
if HAVE_STATIC
|
|
if IFUNC_STATIC
|
check_PROGRAMS += ifuncmain4static
|
check_PROGRAMS += ifuncmain4static
|
ifuncmain4static_SOURCES = ifuncmain4.c
|
ifuncmain4static_SOURCES = ifuncmain4.c
|
ifuncmain4static_DEPENDENCIES = gcctestdir/ld
|
ifuncmain4static_DEPENDENCIES = gcctestdir/ld
|
ifuncmain4static_LDFLAGS = -Bgcctestdir/ -static
|
ifuncmain4static_LDFLAGS = -Bgcctestdir/ -static
|
ifuncmain4static_LDADD =
|
ifuncmain4static_LDADD =
|
|
|
check_PROGRAMS += ifuncmain4picstatic
|
check_PROGRAMS += ifuncmain4picstatic
|
ifuncmain4picstatic: ifuncmain4pic.o gcctestdir/ld
|
ifuncmain4picstatic: ifuncmain4pic.o gcctestdir/ld
|
$(LINK) -Bgcctestdir/ -static ifuncmain4pic.o
|
$(LINK) -Bgcctestdir/ -static ifuncmain4pic.o
|
endif
|
endif
|
|
endif
|
|
|
check_PROGRAMS += ifuncmain4
|
check_PROGRAMS += ifuncmain4
|
ifuncmain4_SOURCES = ifuncmain4.c
|
ifuncmain4_SOURCES = ifuncmain4.c
|
ifuncmain4_DEPENDENCIES = gcctestdir/ld
|
ifuncmain4_DEPENDENCIES = gcctestdir/ld
|
ifuncmain4_LDFLAGS = -Bgcctestdir/
|
ifuncmain4_LDFLAGS = -Bgcctestdir/
|
Line 1788... |
Line 1808... |
|
|
ifuncdep5.o: ifuncmod5.c
|
ifuncdep5.o: ifuncmod5.c
|
$(COMPILE) -c -o $@ $<
|
$(COMPILE) -c -o $@ $<
|
|
|
if HAVE_STATIC
|
if HAVE_STATIC
|
|
if IFUNC_STATIC
|
check_PROGRAMS += ifuncmain5static
|
check_PROGRAMS += ifuncmain5static
|
ifuncmain5static_SOURCES = ifuncmain5.c
|
ifuncmain5static_SOURCES = ifuncmain5.c
|
ifuncmain5static_DEPENDENCIES = gcctestdir/ld ifuncdep5.o
|
ifuncmain5static_DEPENDENCIES = gcctestdir/ld ifuncdep5.o
|
ifuncmain5static_LDFLAGS = -Bgcctestdir/ -static
|
ifuncmain5static_LDFLAGS = -Bgcctestdir/ -static
|
ifuncmain5static_LDADD = ifuncdep5.o
|
ifuncmain5static_LDADD = ifuncdep5.o
|
|
|
check_PROGRAMS += ifuncmain5picstatic
|
check_PROGRAMS += ifuncmain5picstatic
|
ifuncmain5picstatic: ifuncmain5pic.o ifuncmod5.o gcctestdir/ld
|
ifuncmain5picstatic: ifuncmain5pic.o ifuncmod5.o gcctestdir/ld
|
$(LINK) -Bgcctestdir/ -static ifuncmain5pic.o ifuncmod5.o
|
$(LINK) -Bgcctestdir/ -static ifuncmain5pic.o ifuncmod5.o
|
endif
|
endif
|
|
endif
|
|
|
check_PROGRAMS += ifuncmain5
|
check_PROGRAMS += ifuncmain5
|
ifuncmain5_SOURCES = ifuncmain5.c
|
ifuncmain5_SOURCES = ifuncmain5.c
|
ifuncmain5_DEPENDENCIES = gcctestdir/ld ifuncmod5.so
|
ifuncmain5_DEPENDENCIES = gcctestdir/ld ifuncmod5.so
|
ifuncmain5_LDFLAGS = -Bgcctestdir/ -Wl,-R,.
|
ifuncmain5_LDFLAGS = -Bgcctestdir/ -Wl,-R,.
|
Line 1836... |
Line 1858... |
|
|
ifuncmain7pie.o: ifuncmain7.c
|
ifuncmain7pie.o: ifuncmain7.c
|
$(COMPILE) -c -fpie -o $@ $<
|
$(COMPILE) -c -fpie -o $@ $<
|
|
|
if HAVE_STATIC
|
if HAVE_STATIC
|
|
if IFUNC_STATIC
|
check_PROGRAMS += ifuncmain7static
|
check_PROGRAMS += ifuncmain7static
|
ifuncmain7static_SOURCES = ifuncmain7.c
|
ifuncmain7static_SOURCES = ifuncmain7.c
|
ifuncmain7static_DEPENDENCIES = gcctestdir/ld
|
ifuncmain7static_DEPENDENCIES = gcctestdir/ld
|
ifuncmain7static_LDFLAGS = -Bgcctestdir/ -static
|
ifuncmain7static_LDFLAGS = -Bgcctestdir/ -static
|
ifuncmain7static_LDADD =
|
ifuncmain7static_LDADD =
|
|
|
check_PROGRAMS += ifuncmain7picstatic
|
check_PROGRAMS += ifuncmain7picstatic
|
ifuncmain7picstatic: ifuncmain7pic.o gcctestdir/ld
|
ifuncmain7picstatic: ifuncmain7pic.o gcctestdir/ld
|
$(LINK) -Bgcctestdir/ -static ifuncmain7pic.o
|
$(LINK) -Bgcctestdir/ -static ifuncmain7pic.o
|
endif
|
endif
|
|
endif
|
|
|
check_PROGRAMS += ifuncmain7
|
check_PROGRAMS += ifuncmain7
|
ifuncmain7_SOURCES = ifuncmain7.c
|
ifuncmain7_SOURCES = ifuncmain7.c
|
ifuncmain7_DEPENDENCIES = gcctestdir/ld
|
ifuncmain7_DEPENDENCIES = gcctestdir/ld
|
ifuncmain7_LDFLAGS = -Bgcctestdir/
|
ifuncmain7_LDFLAGS = -Bgcctestdir/
|
Line 2022... |
Line 2046... |
$(CXXLINK) -Wl,--incremental-full,--incremental-patch=100 -Bgcctestdir/ common_test_1_tmp.o
|
$(CXXLINK) -Wl,--incremental-full,--incremental-patch=100 -Bgcctestdir/ common_test_1_tmp.o
|
@sleep 1
|
@sleep 1
|
cp -f common_test_1_v2.o common_test_1_tmp.o
|
cp -f common_test_1_v2.o common_test_1_tmp.o
|
$(CXXLINK) -Wl,--incremental-update -Bgcctestdir/ common_test_1_tmp.o
|
$(CXXLINK) -Wl,--incremental-update -Bgcctestdir/ common_test_1_tmp.o
|
|
|
|
check_PROGRAMS += incremental_comdat_test_1
|
|
incremental_comdat_test_1: incr_comdat_test_1.o incr_comdat_test_2_v1.o incr_comdat_test_2_v2.o incr_comdat_test_2_v3.o gcctestdir/ld
|
|
cp -f incr_comdat_test_2_v1.o incr_comdat_test_1_tmp.o
|
|
$(CXXLINK) -Wl,--incremental-full,--incremental-patch=100 -Bgcctestdir/ incr_comdat_test_1.o incr_comdat_test_1_tmp.o
|
|
@sleep 1
|
|
cp -f incr_comdat_test_2_v2.o incr_comdat_test_1_tmp.o
|
|
$(CXXLINK) -Wl,--incremental-update -Bgcctestdir/ incr_comdat_test_1.o incr_comdat_test_1_tmp.o
|
|
@sleep 1
|
|
cp -f incr_comdat_test_2_v3.o incr_comdat_test_1_tmp.o
|
|
$(CXXLINK) -Wl,--incremental-update -Bgcctestdir/ incr_comdat_test_1.o incr_comdat_test_1_tmp.o
|
|
|
endif DEFAULT_TARGET_X86_64
|
endif DEFAULT_TARGET_X86_64
|
|
|
endif GCC
|
endif GCC
|
endif NATIVE_LINKER
|
endif NATIVE_LINKER
|
|
|
Line 2165... |
Line 2200... |
|
|
thumb_bl_in_range.stdout: thumb_bl_in_range
|
thumb_bl_in_range.stdout: thumb_bl_in_range
|
$(TEST_OBJDUMP) -D $< > $@
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
thumb_bl_in_range: thumb_bl_in_range.o ../ld-new
|
thumb_bl_in_range: thumb_bl_in_range.o ../ld-new
|
../ld-new -T $(srcdir)/thumb_branch_range.t -o $@ $<
|
../ld-new --no-fix-arm1176 -T $(srcdir)/thumb_branch_range.t -o $@ $<
|
|
|
thumb_bl_in_range.o: thumb_bl_in_range.s
|
thumb_bl_in_range.o: thumb_bl_in_range.s
|
$(TEST_AS) -o $@ -march=armv5te $<
|
$(TEST_AS) -o $@ -march=armv5te $<
|
|
|
thumb_bl_out_of_range.stdout: thumb_bl_out_of_range
|
thumb_bl_out_of_range.stdout: thumb_bl_out_of_range
|
$(TEST_OBJDUMP) -D $< > $@
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
thumb_bl_out_of_range: thumb_bl_out_of_range.o ../ld-new
|
thumb_bl_out_of_range: thumb_bl_out_of_range.o ../ld-new
|
../ld-new -T $(srcdir)/thumb_branch_range.t -o $@ $<
|
../ld-new --no-fix-arm1176 -T $(srcdir)/thumb_branch_range.t -o $@ $<
|
|
|
thumb_bl_out_of_range.o: thumb_bl_out_of_range.s
|
thumb_bl_out_of_range.o: thumb_bl_out_of_range.s
|
$(TEST_AS) -o $@ -march=armv5te $<
|
$(TEST_AS) -o $@ -march=armv5te $<
|
|
|
thumb2_bl_in_range.stdout: thumb2_bl_in_range
|
thumb2_bl_in_range.stdout: thumb2_bl_in_range
|
Line 2201... |
Line 2236... |
|
|
thumb_blx_in_range.stdout: thumb_blx_in_range
|
thumb_blx_in_range.stdout: thumb_blx_in_range
|
$(TEST_OBJDUMP) -D $< > $@
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
thumb_blx_in_range: thumb_blx_in_range.o ../ld-new
|
thumb_blx_in_range: thumb_blx_in_range.o ../ld-new
|
../ld-new -T $(srcdir)/thumb_branch_range.t -o $@ $<
|
../ld-new --no-fix-arm1176 -T $(srcdir)/thumb_branch_range.t -o $@ $<
|
|
|
thumb_blx_in_range.o: thumb_blx_in_range.s
|
thumb_blx_in_range.o: thumb_blx_in_range.s
|
$(TEST_AS) -o $@ -march=armv5te $<
|
$(TEST_AS) -o $@ -march=armv5te $<
|
|
|
thumb_blx_out_of_range.stdout: thumb_blx_out_of_range
|
thumb_blx_out_of_range.stdout: thumb_blx_out_of_range
|
$(TEST_OBJDUMP) -D $< > $@
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
thumb_blx_out_of_range: thumb_blx_out_of_range.o ../ld-new
|
thumb_blx_out_of_range: thumb_blx_out_of_range.o ../ld-new
|
../ld-new -T $(srcdir)/thumb_branch_range.t -o $@ $<
|
../ld-new --no-fix-arm1176 -T $(srcdir)/thumb_branch_range.t -o $@ $<
|
|
|
thumb_blx_out_of_range.o: thumb_blx_out_of_range.s
|
thumb_blx_out_of_range.o: thumb_blx_out_of_range.s
|
$(TEST_AS) -o $@ -march=armv5te $<
|
$(TEST_AS) -o $@ -march=armv5te $<
|
|
|
thumb2_blx_in_range.stdout: thumb2_blx_in_range
|
thumb2_blx_in_range.stdout: thumb2_blx_in_range
|
Line 2237... |
Line 2272... |
|
|
thumb_bl_out_of_range_local.stdout: thumb_bl_out_of_range_local
|
thumb_bl_out_of_range_local.stdout: thumb_bl_out_of_range_local
|
$(TEST_OBJDUMP) -D $< > $@
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
thumb_bl_out_of_range_local: thumb_bl_out_of_range_local.o ../ld-new
|
thumb_bl_out_of_range_local: thumb_bl_out_of_range_local.o ../ld-new
|
../ld-new -T $(srcdir)/thumb_branch_range.t -o $@ $<
|
../ld-new --no-fix-arm1176 -T $(srcdir)/thumb_branch_range.t -o $@ $<
|
|
|
thumb_bl_out_of_range_local.o: thumb_bl_out_of_range_local.s
|
thumb_bl_out_of_range_local.o: thumb_bl_out_of_range_local.s
|
$(TEST_AS) -o $@ -march=armv5te $<
|
$(TEST_AS) -o $@ -march=armv5te $<
|
|
|
arm_thm_jump11.stdout: arm_thm_jump11
|
arm_thm_jump11.stdout: arm_thm_jump11
|
Line 2274... |
Line 2309... |
|
|
arm_fix_v4bx.stdout: arm_fix_v4bx
|
arm_fix_v4bx.stdout: arm_fix_v4bx
|
$(TEST_OBJDUMP) -D -j.text $< > $@
|
$(TEST_OBJDUMP) -D -j.text $< > $@
|
|
|
arm_fix_v4bx: arm_fix_v4bx.o ../ld-new
|
arm_fix_v4bx: arm_fix_v4bx.o ../ld-new
|
../ld-new --fix-v4bx -o $@ $<
|
../ld-new --no-fix-arm1176 --fix-v4bx -o $@ $<
|
|
|
arm_fix_v4bx.o: arm_fix_v4bx.s
|
arm_fix_v4bx.o: arm_fix_v4bx.s
|
$(TEST_AS) -o $@ $<
|
$(TEST_AS) -o $@ $<
|
|
|
arm_fix_v4bx_interworking.stdout: arm_fix_v4bx_interworking
|
arm_fix_v4bx_interworking.stdout: arm_fix_v4bx_interworking
|
$(TEST_OBJDUMP) -D -j.text $< > $@
|
$(TEST_OBJDUMP) -D -j.text $< > $@
|
|
|
arm_fix_v4bx_interworking: arm_fix_v4bx.o ../ld-new
|
arm_fix_v4bx_interworking: arm_fix_v4bx.o ../ld-new
|
../ld-new --fix-v4bx-interworking -o $@ $<
|
../ld-new --no-fix-arm1176 --fix-v4bx-interworking -o $@ $<
|
|
|
arm_no_fix_v4bx.stdout: arm_no_fix_v4bx
|
arm_no_fix_v4bx.stdout: arm_no_fix_v4bx
|
$(TEST_OBJDUMP) -D -j.text $< > $@
|
$(TEST_OBJDUMP) -D -j.text $< > $@
|
|
|
arm_no_fix_v4bx: arm_fix_v4bx.o ../ld-new
|
arm_no_fix_v4bx: arm_fix_v4bx.o ../ld-new
|
../ld-new -o $@ $<
|
../ld-new --no-fix-arm1176 -o $@ $<
|
|
|
MOSTLYCLEANFILES += arm_fix_v4bx arm_fix_v4bx_interworking arm_no_fix_v4bx
|
MOSTLYCLEANFILES += arm_fix_v4bx arm_fix_v4bx_interworking arm_no_fix_v4bx
|
|
|
check_SCRIPTS += arm_attr_merge.sh
|
check_SCRIPTS += arm_attr_merge.sh
|
check_DATA += arm_attr_merge_6.stdout arm_attr_merge_6r.stdout \
|
check_DATA += arm_attr_merge_6.stdout arm_attr_merge_6r.stdout \
|
Line 2329... |
Line 2364... |
arm_attr_merge_7b.o: arm_attr_merge_7b.s
|
arm_attr_merge_7b.o: arm_attr_merge_7b.s
|
$(TEST_AS) -o $@ $<
|
$(TEST_AS) -o $@ $<
|
|
|
MOSTLYCLEANFILES += arm_attr_merge_6 arm_attr_merge_6r arm_attr_merge_7
|
MOSTLYCLEANFILES += arm_attr_merge_6 arm_attr_merge_6r arm_attr_merge_7
|
|
|
|
# ARM1176 workaround test.
|
|
check_SCRIPTS += arm_fix_1176.sh
|
|
check_DATA += arm_fix_1176_default_v6z.stdout arm_fix_1176_on_v6z.stdout \
|
|
arm_fix_1176_off_v6z.stdout arm_fix_1176_default_v5te.stdout \
|
|
arm_fix_1176_default_v7a.stdout arm_fix_1176_default_1156t2f_s.stdout
|
|
|
|
arm_fix_1176_default_v6z.stdout: arm_fix_1176_default_v6z
|
|
$(TEST_OBJDUMP) -D -j.foo $< > $@
|
|
|
|
arm_fix_1176_default_v6z: arm_fix_1176_default_v6z.o ../ld-new
|
|
../ld-new --section-start=.foo=0x2001014 -o $@ $<
|
|
|
|
arm_fix_1176_default_v6z.o: arm_fix_1176.s
|
|
$(TEST_AS) -march=armv6z -o $@ $<
|
|
|
|
arm_fix_1176_on_v6z.stdout: arm_fix_1176_on_v6z
|
|
$(TEST_OBJDUMP) -D -j.foo $< > $@
|
|
|
|
arm_fix_1176_on_v6z: arm_fix_1176_on_v6z.o ../ld-new
|
|
../ld-new --section-start=.foo=0x2001014 --fix-arm1176 -o $@ $<
|
|
|
|
arm_fix_1176_on_v6z.o: arm_fix_1176.s
|
|
$(TEST_AS) -march=armv6z -o $@ $<
|
|
|
|
arm_fix_1176_off_v6z.stdout: arm_fix_1176_off_v6z
|
|
$(TEST_OBJDUMP) -D -j.foo $< > $@
|
|
|
|
arm_fix_1176_off_v6z: arm_fix_1176_off_v6z.o ../ld-new
|
|
../ld-new --section-start=.foo=0x2001014 --no-fix-arm1176 -o $@ $<
|
|
|
|
arm_fix_1176_off_v6z.o: arm_fix_1176.s
|
|
$(TEST_AS) -march=armv6z -o $@ $<
|
|
|
|
arm_fix_1176_default_v5te.stdout: arm_fix_1176_default_v5te
|
|
$(TEST_OBJDUMP) -D -j.foo $< > $@
|
|
|
|
arm_fix_1176_default_v5te: arm_fix_1176_default_v5te.o ../ld-new
|
|
../ld-new --section-start=.foo=0x2001014 -o $@ $<
|
|
|
|
arm_fix_1176_default_v5te.o: arm_fix_1176.s
|
|
$(TEST_AS) -march=armv5te -o $@ $<
|
|
|
|
arm_fix_1176_default_v7a.stdout: arm_fix_1176_default_v7a
|
|
$(TEST_OBJDUMP) -D -j.foo $< > $@
|
|
|
|
arm_fix_1176_default_v7a: arm_fix_1176_default_v7a.o ../ld-new
|
|
../ld-new --section-start=.foo=0x2001014 -o $@ $<
|
|
|
|
arm_fix_1176_default_v7a.o: arm_fix_1176.s
|
|
$(TEST_AS) -march=armv7-a -o $@ $<
|
|
|
|
arm_fix_1176_default_1156t2f_s.stdout: arm_fix_1176_default_1156t2f_s
|
|
$(TEST_OBJDUMP) -D -j.foo $< > $@
|
|
|
|
arm_fix_1176_default_1156t2f_s: arm_fix_1176_default_1156t2f_s.o ../ld-new
|
|
../ld-new --section-start=.foo=0x2001014 -o $@ $<
|
|
|
|
arm_fix_1176_default_1156t2f_s.o: arm_fix_1176.s
|
|
$(TEST_AS) -mcpu=arm1156t2f-s -o $@ $<
|
|
|
|
MOSTLYCLEANFILES += arm_fix_1176_default_v6z arm_fix_1176_on_v6z arm_fix_1176_off_v6z \
|
|
arm_fix_1176_default_v5te arm_fix_1176_default_v7a arm_fix_1176_default_1156t2f_s
|
|
|
# Cortex-A8 workaround test.
|
# Cortex-A8 workaround test.
|
|
|
check_SCRIPTS += arm_cortex_a8.sh
|
check_SCRIPTS += arm_cortex_a8.sh
|
check_DATA += arm_cortex_a8_b_cond.stdout arm_cortex_a8_b.stdout \
|
check_DATA += arm_cortex_a8_b_cond.stdout arm_cortex_a8_b.stdout \
|
arm_cortex_a8_bl.stdout arm_cortex_a8_blx.stdout \
|
arm_cortex_a8_bl.stdout arm_cortex_a8_blx.stdout \
|
Line 2421... |
Line 2519... |
|
|
pr12826_2.o: pr12826_2.s
|
pr12826_2.o: pr12826_2.s
|
$(TEST_AS) -o $@ $<
|
$(TEST_AS) -o $@ $<
|
|
|
check_SCRIPTS += arm_unaligned_reloc.sh
|
check_SCRIPTS += arm_unaligned_reloc.sh
|
check_DATA += arm_unaligned_reloc.stdout
|
check_DATA += arm_unaligned_reloc.stdout arm_unaligned_reloc_r.stdout
|
|
|
arm_unaligned_reloc.stdout: arm_unaligned_reloc
|
arm_unaligned_reloc.stdout: arm_unaligned_reloc
|
$(TEST_OBJDUMP) -D $< > $@
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
|
arm_unaligned_reloc_r.stdout: arm_unaligned_reloc_r
|
|
$(TEST_OBJDUMP) -Dr $< > $@
|
|
|
arm_unaligned_reloc: arm_unaligned_reloc.o ../ld-new
|
arm_unaligned_reloc: arm_unaligned_reloc.o ../ld-new
|
../ld-new -o $@ $<
|
../ld-new -o $@ $<
|
|
|
|
arm_unaligned_reloc_r: arm_unaligned_reloc.o ../ld-new
|
|
../ld-new -r -o $@ $<
|
|
|
arm_unaligned_reloc.o: arm_unaligned_reloc.s
|
arm_unaligned_reloc.o: arm_unaligned_reloc.s
|
$(TEST_AS) -o $@ $<
|
$(TEST_AS) -o $@ $<
|
|
|
MOSTLYCLEANFILES += arm_unaligned_reloc
|
MOSTLYCLEANFILES += arm_unaligned_reloc arm_unaligned_reloc_r
|
|
|
|
# Check ARM to ARM farcall veneers
|
|
|
|
check_SCRIPTS += arm_farcall_arm_arm.sh
|
|
check_DATA += arm_farcall_arm_arm.stdout
|
|
|
|
arm_farcall_arm_arm.stdout: arm_farcall_arm_arm
|
|
$(TEST_OBJDUMP) -d $< > $@
|
|
|
|
arm_farcall_arm_arm: arm_farcall_arm_arm.o ../ld-new
|
|
../ld-new --no-fix-arm1176 --section-start .text=0x1000 --section-start .foo=0x2001020 -o $@ $<
|
|
|
|
arm_farcall_arm_arm.o: arm_farcall_arm_arm.s
|
|
$(TEST_AS) -o $@ $<
|
|
|
|
MOSTLYCLEANFILES += arm_farcall_arm_arm
|
|
|
|
# Check ARM to Thumb farcall veneers
|
|
|
|
check_SCRIPTS += arm_farcall_arm_thumb.sh
|
|
check_DATA += arm_farcall_arm_thumb.stdout arm_farcall_arm_thumb_5t.stdout
|
|
|
|
arm_farcall_arm_thumb.stdout: arm_farcall_arm_thumb
|
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
|
arm_farcall_arm_thumb: arm_farcall_arm_thumb.o ../ld-new
|
|
../ld-new --section-start .text=0x1000 --section-start .foo=0x2001014 -o $@ $<
|
|
|
|
arm_farcall_arm_thumb.o: arm_farcall_arm_thumb.s
|
|
$(TEST_AS) -o $@ $<
|
|
|
|
arm_farcall_arm_thumb_5t.stdout: arm_farcall_arm_thumb_5t
|
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
|
arm_farcall_arm_thumb_5t: arm_farcall_arm_thumb_5t.o ../ld-new
|
|
../ld-new --no-fix-arm1176 --section-start .text=0x1000 --section-start .foo=0x2001014 -o $@ $<
|
|
|
|
arm_farcall_arm_thumb_5t.o: arm_farcall_arm_thumb.s
|
|
$(TEST_AS) -march=armv5t -o $@ $<
|
|
|
|
MOSTLYCLEANFILES += arm_farcall_arm_thumb arm_farcall_arm_thumb_5t
|
|
|
|
# Check Thumb to Thumb farcall veneers
|
|
|
|
check_SCRIPTS += arm_farcall_thumb_thumb.sh
|
|
check_DATA += arm_farcall_thumb_thumb.stdout \
|
|
arm_farcall_thumb_thumb_5t.stdout \
|
|
arm_farcall_thumb_thumb_7m.stdout \
|
|
arm_farcall_thumb_thumb_6m.stdout
|
|
|
|
arm_farcall_thumb_thumb.stdout: arm_farcall_thumb_thumb
|
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
|
arm_farcall_thumb_thumb: arm_farcall_thumb_thumb.o ../ld-new
|
|
../ld-new --section-start .text=0x1000 --section-start .foo=0x2001014 -o $@ $<
|
|
|
|
arm_farcall_thumb_thumb.o: arm_farcall_thumb_thumb.s
|
|
$(TEST_AS) -march=armv4t -o $@ $<
|
|
|
|
arm_farcall_thumb_thumb_5t.stdout: arm_farcall_thumb_thumb_5t
|
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
|
arm_farcall_thumb_thumb_5t: arm_farcall_thumb_thumb_5t.o ../ld-new
|
|
../ld-new --no-fix-arm1176 --section-start .text=0x1000 --section-start .foo=0x2001014 -o $@ $<
|
|
|
|
arm_farcall_thumb_thumb_5t.o: arm_farcall_thumb_thumb.s
|
|
$(TEST_AS) -march=armv5t -o $@ $<
|
|
|
|
arm_farcall_thumb_thumb_7m.stdout: arm_farcall_thumb_thumb_7m
|
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
|
arm_farcall_thumb_thumb_7m: arm_farcall_thumb_thumb_7m.o ../ld-new
|
|
../ld-new --section-start .text=0x1000 --section-start .foo=0x2001014 -o $@ $<
|
|
|
|
arm_farcall_thumb_thumb_7m.o: arm_farcall_thumb_thumb.s
|
|
$(TEST_AS) -march=armv7-m -o $@ $<
|
|
|
|
arm_farcall_thumb_thumb_6m.stdout: arm_farcall_thumb_thumb_6m
|
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
|
arm_farcall_thumb_thumb_6m: arm_farcall_thumb_thumb_6m.o ../ld-new
|
|
../ld-new --section-start .text=0x1000 --section-start .foo=0x2001014 -o $@ $<
|
|
|
|
arm_farcall_thumb_thumb_6m.o: arm_farcall_thumb_thumb.s
|
|
$(TEST_AS) -march=armv6-m -o $@ $<
|
|
|
|
MOSTLYCLEANFILES += arm_farcall_thumb_thumb arm_farcall_thumb_thumb_5t \
|
|
arm_farcall_thumb_thumb_7m arm_farcall_thumb_thumb_6m
|
|
|
|
# Check Thumb to ARM farcall veneers
|
|
|
|
check_SCRIPTS += arm_farcall_thumb_arm.sh
|
|
check_DATA += arm_farcall_thumb_arm.stdout \
|
|
arm_farcall_thumb_arm_5t.stdout
|
|
|
|
arm_farcall_thumb_arm.stdout: arm_farcall_thumb_arm
|
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
|
arm_farcall_thumb_arm: arm_farcall_thumb_arm.o ../ld-new
|
|
../ld-new --section-start .text=0x1c01010 --section-start .foo=0x2001014 -o $@ $<
|
|
|
|
arm_farcall_thumb_arm.o: arm_farcall_thumb_arm.s
|
|
$(TEST_AS) -o $@ $<
|
|
|
|
arm_farcall_thumb_arm_5t.stdout: arm_farcall_thumb_arm_5t
|
|
$(TEST_OBJDUMP) -D $< > $@
|
|
|
|
arm_farcall_thumb_arm_5t: arm_farcall_thumb_arm_5t.o ../ld-new
|
|
../ld-new --no-fix-arm1176 --section-start .text=0x1c01010 --section-start .foo=0x2001014 -o $@ $<
|
|
|
|
arm_farcall_thumb_arm_5t.o: arm_farcall_thumb_arm.s
|
|
$(TEST_AS) -march=armv5t -o $@ $<
|
|
|
|
MOSTLYCLEANFILES += arm_farcall_thumb_arm arm_farcall_thumb_arm_5t
|
|
|
endif DEFAULT_TARGET_ARM
|
endif DEFAULT_TARGET_ARM
|
|
|
endif NATIVE_OR_CROSS_LINKER
|
endif NATIVE_OR_CROSS_LINKER
|
|
|