This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix handling of common symbols with plugins


> +# plugin_test_6.sh -- a test case for the plugin API.
> +
> +# Copyright (C) 2010-2014 Free Software Foundation, Inc.
> +# Written by Cary Coutant <ccoutant@google.com>.
>
> Update these lines.

Done.

> +readelf -SW plugin_test_10 > plugin_test_10.sections
> +grep ".bss.* 8$" plugin_test_10.sections > /dev/null
> +
> +exit 0
>
> The readelf command should be run from the Makefile itself. Create a
> new rule for plugin_test_10.sections, and use $(TEST_READELF). There
> are several examples of this in testsuite/Makefile.am.
>
> Then your test script only needs to run grep, but use grep's "-q"
> option instead of "> /dev/null".

Done.

New patch attached.

Cheers,
Rafael

2014-09-18  Rafael Ãvila de EspÃndola <rafael.espindola@gmail.com>

        * testsuite/Makefile.am (plugin_test_10): New test.
        * testsuite/Makefile.in: Regenerate
        * testsuite/plugin_common_test_2.c (c1): Align to 8.
        * testsuite/plugin_test_10.sh: New file.
diff --git a/gold/Makefile.in b/gold/Makefile.in
index d404666..39fa5e6 100644
--- a/gold/Makefile.in
+++ b/gold/Makefile.in
@@ -70,8 +70,8 @@ subdir = .
 DIST_COMMON = NEWS README ChangeLog $(srcdir)/Makefile.in \
 	$(srcdir)/Makefile.am $(top_srcdir)/configure \
 	$(am__configure_deps) $(srcdir)/config.in \
-	$(srcdir)/../mkinstalldirs $(top_srcdir)/po/Make-in ffsll.c \
-	ftruncate.c pread.c mremap.c yyscript.h yyscript.c \
+	$(srcdir)/../mkinstalldirs $(top_srcdir)/po/Make-in \
+	ftruncate.c pread.c ffsll.c mremap.c yyscript.h yyscript.c \
 	$(srcdir)/../depcomp $(srcdir)/../ylwrap
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
@@ -763,6 +763,7 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/ftruncate.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/mremap.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/pread.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aarch64-reloc-property.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aarch64.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/archive.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arm-reloc-property.Po@am__quote@

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]