#54 tests: switch to https://src.fedoraproject.org/tests/binutils/
Merged 4 months ago by nickc. Opened 4 months ago by mprchlik.
rpms/ mprchlik/binutils f38  into  f38

file modified
+2 -2
@@ -11,5 +11,5 @@ 

    - rhel-9

  decision_context: osci_compose_gate

  rules:

-   - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

-   - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}

+   - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.gate-build-fast-lane.functional}

+   - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.gate-build-slow-lane.functional}

@@ -0,0 +1,25 @@ 

+ #

+ # Build/PR gating tests for binutils

+ #

+ 

+ /common:

+   plan:

+     import:

+       url: https://src.fedoraproject.org/tests/binutils.git

+       ref: main

+       name: /plans/build-gating/common

+ 

+ /kernel-rebuild:

+   plan:

+     import:

+       url: https://src.fedoraproject.org/tests/binutils.git

+       ref: main

+       name: /plans/build-gating/kernel-rebuild

+ 

+ adjust+:

+   - because: "Plan to be ran when executed locally, or executed by CI system to gate a build or PR."

+     when: >-

+       trigger is defined

+       and trigger != commit

+       and trigger != build

+     enabled: false

file removed
-5
@@ -1,5 +0,0 @@ 

- summary: CI Gating Plan

- discover:

-     how: fmf

- execute:

-     how: tmt

file removed
-2
@@ -1,2 +0,0 @@ 

- The test's Makefiles are not used in Fedora CI infrastructure.  But are kept here

-  for backward compatibility with traditional beakerlib test harness in RHEL.

@@ -1,62 +0,0 @@ 

- #   Copyright (c) 2009 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # Testcases for this bugzilla were provided by Jakub Jelinek <jakub@redhat.com>

- # I've only wrapped them to RHTS

- 

- TOPLEVEL_NAMESPACE=/tools

- PACKAGE_NAME=binutils

- RELATIVE_PATH=bugzillas/241252

- 

- export TESTVERSION=1.0

- 

- export TEST=$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)

- 

- .PHONY: all install download clean

- 

- FILES=$(METADATA) \

- 	runtest.sh \

- 	Makefile \

- 	x.i \

- 	y.i

- 

- run: $(FILES) #build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	chmod a+x ./runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@touch $(METADATA)

- 	@echo "Owner:        Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:         $(TEST)" >> $(METADATA)

- 	@echo "Path:         $(TEST_DIR)"	>> $(METADATA)

- 	@echo "TestVersion:  $(TESTVERSION)"	>> $(METADATA)

- 	@echo "Description:  Regression test for bz241252." >> $(METADATA)

- 	@echo "TestTime:     3m" >> $(METADATA)

- 	@echo "RunFor:       $(PACKAGE_NAME)" >> $(METADATA)

- 	@echo "Requires:     $(PACKAGE_NAME) gcc" >> $(METADATA)

- 	@echo "Priority:	Normal" >> $(METADATA)

- 	@echo "Type:		Regression" >> $(METADATA)

- 	@echo "Releases:	-RHEL4" >> $(METADATA)

- 	@echo "License:		GPLv2" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,12 +0,0 @@ 

- summary: Regression test for bz241252.

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- duration: 3m

- extra-summary: /tools/binutils/bugzillas/241252

- extra-task: /tools/binutils/bugzillas/241252

@@ -1,62 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2009 Red Hat, Inc. All rights reserved.

- #   

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #   

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #   

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include rhts environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- rlJournalStart

-     rlPhaseStartSetup Setup

-         rlAssertRpm $PACKAGE

-         rlShowRunningKernel

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         cp x.i y.i $TmpDir

-         rlRun "pushd $TmpDir"

- 

-         rlRun "gcc -c -O2 -fpic -o x.o x.i -g" 0 "Compile test case 'x'"

-         rlRun "gcc -c -O2 -fpic -o y.o y.i -g" 0 "Compile test case 'y'"

-         rlRun "gcc -Wl,--unique -o x [xy].o" 0 "Link 'x' and 'y'"

- 

-         # Note: debug_ranges replaced by debug_rnglist (since DWARF 5 in Fedora 34)

-         rlLogInfo 'x.o + y.o:'

-         rlLogInfo "$( readelf -WS [xy].o | grep debug_rnglist | grep PROGBITS )"

-         rlLogInfo 'x:'

-         rlLogInfo "$( readelf -WS x | grep debug_rnglist )"

-     rlPhaseEnd

- 

-     rlPhaseStartTest Testing

-         if [ $( readelf -WS [xy].o | grep debug_rnglist | grep PROGBITS | wc -l ) -eq 2 ] \

-             && [ $( readelf -WS x | grep debug_rnglist | wc -l ) -eq 1 ]; then

-             rlPass "Debug ranges sections were merged"

-         else

-             rlFail "Debug ranges sections were not merged"

-         fi

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup Cleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir $rlRun_LOG" 0 "Removing tmp directory"

-     rlPhaseEnd

-     rlJournalPrintText

- rlJournalEnd

@@ -1,62 +0,0 @@ 

- extern void __assert_fail (const char *, const char *, unsigned int, const char *)

-      __attribute__ ((__nothrow__, __noreturn__));

- 

- struct gst;

- struct gs;

- 

- extern void bar (void *) __attribute__ ((__nothrow__));

- 

- typedef int (*gf) (struct gst *, struct gs *,

-        const unsigned char **, const unsigned char *,

-        unsigned char **, unsigned long *, int, int);

- 

- struct gst

- {

-   gf fct;

-   int min_needed_from;

- };

- 

- struct gs

- {

-   unsigned char *outbuf;

-   unsigned char *outbufend;

-   int flags;

-   int invocation_counter;

-   int internal_use;

- };

- 

- typedef struct gi

- {

-   unsigned long nsteps;

-   struct gst *steps;

-   struct gs data [10];

- } *gt;

- 

- int

- foo (gt cd, const unsigned char **inbuf,

-   const unsigned char *inbufend, unsigned char **outbuf,

-   unsigned char *outbufend, unsigned long *irreversible)

- {

-   unsigned long last_step;

-   int result;

-   last_step = cd->nsteps - 1;

-   *irreversible = 0;

-   cd->data[last_step].outbuf = outbuf != ((void *)0) ? *outbuf : ((void *)0);

-   cd->data[last_step].outbufend = outbufend;

-   gf fct = cd->steps->fct;

-   if (inbuf == ((void *)0) || *inbuf == ((void *)0))

-     result = (bar ((void *) (fct)), (*(fct)) (cd->steps, cd->data, ((void *)0), ((void *)0), ((void *)0), irreversible, cd->data[last_step].outbuf == ((void *)0) ? 2 : 1, 0));

-   else

-     {

-       const unsigned char *last_start;

-       ((outbuf != ((void *)0) && *outbuf != ((void *)0)) ? (void) (0) : __assert_fail ("outbuf != ((void *)0) && *outbuf != ((void *)0)", "gconv.c", 67, "foo"));

-       do

- 	{

- 	  last_start = *inbuf;

- 	  result = (bar ((void *) (fct)), (*(fct)) (cd->steps, cd->data, inbuf, inbufend, ((void *)0), irreversible, 0, 0));

- 	}

-       while (result == 4 && last_start != *inbuf

-       && *inbuf + cd->steps->min_needed_from <= inbufend);

-     }

-   return result;

- }

@@ -1,71 +0,0 @@ 

- extern void __assert_fail (const char *, const char *, unsigned int, const char *)

-      __attribute__ ((__nothrow__, __noreturn__));

- 

- struct gst;

- struct gs;

- 

- extern void bar (void *) __attribute__ ((__nothrow__));

- 

- void bar (void *x)

- {

- }

- 

- typedef int (*gf) (struct gst *, struct gs *,

-        const unsigned char **, const unsigned char *,

-        unsigned char **, unsigned long *, int, int);

- 

- struct gst

- {

-   gf fct;

-   int min_needed_from;

- };

- 

- struct gs

- {

-   unsigned char *outbuf;

-   unsigned char *outbufend;

-   int flags;

-   int invocation_counter;

-   int internal_use;

- };

- 

- typedef struct gi

- {

-   unsigned long nsteps;

-   struct gst *steps;

-   struct gs data [10];

- } *gt;

- 

- int

- baz (gt cd, const unsigned char **inbuf,

-   const unsigned char *inbufend, unsigned char **outbuf,

-   unsigned char *outbufend, unsigned long *irreversible)

- {

-   unsigned long last_step;

-   int result;

-   last_step = cd->nsteps - 1;

-   *irreversible = 0;

-   cd->data[last_step].outbuf = outbuf != ((void *)0) ? *outbuf : ((void *)0);

-   cd->data[last_step].outbufend = outbufend;

-   gf fct = cd->steps->fct;

-   if (inbuf == ((void *)0) || *inbuf == ((void *)0))

-     result = (bar ((void *) (fct)), (*(fct)) (cd->steps, cd->data, ((void *)0), ((void *)0), ((void *)0), irreversible, cd->data[last_step].outbuf == ((void *)0) ? 2 : 1, 0));

-   else

-     {

-       const unsigned char *last_start;

-       ((outbuf != ((void *)0) && *outbuf != ((void *)0)) ? (void) (0) : __assert_fail ("outbuf != ((void *)0) && *outbuf != ((void *)0)", "gconv.c", 67, "foo"));

-       do

- 	{

- 	  last_start = *inbuf;

- 	  result = (bar ((void *) (fct)), (*(fct)) (cd->steps, cd->data, inbuf, inbufend, ((void *)0), irreversible, 0, 0));

- 	}

-       while (result == 4 && last_start != *inbuf

-       && *inbuf + cd->steps->min_needed_from <= inbufend);

-     }

-   return result;

- }

- 

- int

- main (void)

- {

- }

@@ -1,82 +0,0 @@ 

- #

- # Copyright (c) 2006 Red Hat, Inc. All rights reserved. This copyrighted material

- # is made available to anyone wishing to use, modify, copy, or

- # redistribute it subject to the terms and conditions of the GNU General

- # Public License v.2.

- #

- # This program is distributed in the hope that it will be useful, but WITHOUT ANY

- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A

- # PARTICULAR PURPOSE. See the GNU General Public License for more details.

- #

- # You should have received a copy of the GNU General Public License

- # along with this program; if not, write to the Free Software

- # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

- #

- # Author: Michal Nowak <mnowak@redhat.com>

- 

- # The toplevel namespace within which the test lives.

- TOPLEVEL_NAMESPACE=tools

- 

- # The name of the package under test:

- PACKAGE_NAME=binutils

- 

- # The path of the test below the package:

- RELATIVE_PATH=Sanity/430856-libbfd.a-not-compiled-with-fPIC

- 

- # Version of the Test. Used with make tag.

- export TESTVERSION=1.1

- 

- # The combined namespace of the test.

- export TEST=/$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)

- 

- 

- # A phony target is one that is not really the name of a file.

- # It is just a name for some commands to be executed when you

- # make an explicit request. There are two reasons to use a

- # phony target: to avoid a conflict with a file of the same

- # name, and to improve performance.

- .PHONY: all install download clean

- 

- # executables to be built should be added here, they will be generated on the system under test.

- BUILT_FILES=

- 

- # data files, .c files, scripts anything needed to either compile the test and/or run it.

- FILES=$(METADATA) runtest.sh Makefile PURPOSE bz430856.tar.gz

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	chmod a+x ./runtest.sh

- 

- clean:

- 	rm -f *~ *.rpm $(BUILT_FILES)

- 

- # You may need to add other targets e.g. to build executables from source code

- # Add them here:

- 

- 

- # Include Common Makefile

- include /usr/share/rhts/lib/rhts-make.include

- 

- # Generate the testinfo.desc here:

- $(METADATA): Makefile

- 	@touch $(METADATA)

- # Change to the test owner's name

- 	@echo "Owner:        Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:         $(TEST)" >> $(METADATA)

- 	@echo "Path:         $(TEST_DIR)"	>> $(METADATA)

- 	@echo "License:      GPLv2" >> $(METADATA)

- 	@echo "TestVersion:  $(TESTVERSION)"	>> $(METADATA)

- 	@echo "Description:  libbfd.a not compiled with -fPIC">> $(METADATA)

- 	@echo "TestTime:     5m" >> $(METADATA)

- 	@echo "RunFor:       $(PACKAGE_NAME)" >> $(METADATA)

- # add any other packages for which your test ought to run here

- 	@echo "Requires:     $(PACKAGE_NAME)" >> $(METADATA)

- 	@echo "Requires:     $(PACKAGE_NAME)-devel" >> $(METADATA)

- 	@echo "Requires:     gcc glibc-headers" >> $(METADATA)

- # add any other requirements for the script to run here

- 

- # You may need other fields here; see the documentation

- 	rhts-lint $(METADATA)

- 

@@ -1,11 +0,0 @@ 

- Would it be possible to have /usr/lib64/libbfd.a in binutils

- compiled with -fPIC? Otherwise, shared apps can't link against

- libbfd. In binutils.spec, libiberty.a is already recreated 

- with -fPIC, is there some reason the same isn't done for 

- libbfd?

- 

- From binutils.spec:

- 

-  # Rebuild libiberty.a with -fPIC

-   make -C libiberty clean

-   make CFLAGS="-g -fPIC $RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" -C libiberty

@@ -1,20 +0,0 @@ 

- summary: libbfd.a not compiled with -fPIC

- description: "Would it be possible to have /usr/lib64/libbfd.a in binutils\ncompiled\

-     \ with -fPIC? Otherwise, shared apps can't link against\nlibbfd. In binutils.spec,\

-     \ libiberty.a is already recreated \nwith -fPIC, is there some reason the same\

-     \ isn't done for \nlibbfd?\n\nFrom binutils.spec:\n\n # Rebuild libiberty.a with\

-     \ -fPIC\n  make -C libiberty clean\n  make CFLAGS=\"-g -fPIC $RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64\"\

-     \ -C libiberty\n"

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - binutils-devel

- - gcc

- - glibc-headers

- duration: 5m

- extra-summary: /tools/binutils/Sanity/430856-libbfd.a-not-compiled-with-fPIC

- extra-task: /tools/binutils/Sanity/430856-libbfd.a-not-compiled-with-fPIC

@@ -1,21 +0,0 @@ 

- CC=gcc

- CFLAGS=-g -Wall

- 

- all: test

- 

- libbfdtest.so bfdtest: Makefile

- 

- libbfdtest.so: libbfdtest.c libbfdtest.h

- 	$(CC) $(CFLAGS) -shared -o $@ -fPIC $< -lbfd -liberty

- 

- bfdtest: bfdtest.c libbfdtest.h libbfdtest.so

- 	$(CC) -o $@ $< -L. -Wl,-rpath,.  -lbfdtest -ldl

- 

- .PHONY: test

- test: bfdtest

- 	./$<

- 	@echo OK

- 

- clean:

- 	$(RM) libbfdtest.so bfdtest

- 

@@ -1,7 +0,0 @@ 

- #include "libbfdtest.h"

- 

- int

- main (void)

- {

-   return libbfdtest () ? 0 : 1;

- }

@@ -1,10 +0,0 @@ 

- #include <bfd.h>

- 

- #include "libbfdtest.h"

- 

- int

- libbfdtest (void)

- {

-   bfd_set_error (bfd_error_no_error);

-   return bfd_get_error () == bfd_error_no_error;

- }

@@ -1,1 +0,0 @@ 

- extern int libbfdtest (void);

@@ -1,49 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2009 Red Hat, Inc. All rights reserved.

- #   

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #   

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #   

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include rhts environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

-         rlShowPackageVersion $PACKAGE

-         rlShowRunningKernel

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         cp reproducer/* $TmpDir

-         rlRun "pushd $TmpDir"

-         rlRun "make clean" 0 "Make clean"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "make" 0 "Build the files"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

-     rlJournalPrintText

- rlJournalEnd

@@ -1,85 +0,0 @@ 

- # Copyright (c) 2006 Red Hat, Inc. All rights reserved. This copyrighted material 

- # is made available to anyone wishing to use, modify, copy, or

- # redistribute it subject to the terms and conditions of the GNU General

- # Public License v.2.

- #

- # This program is distributed in the hope that it will be useful, but WITHOUT ANY

- # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A

- # PARTICULAR PURPOSE. See the GNU General Public License for more details.

- #

- # You should have received a copy of the GNU General Public License

- # along with this program; if not, write to the Free Software

- # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

- #

- # Author: Michal Nowak <mnowak@redhat.com>

- 

- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

- # Example Makefile for RHTS                                          #

- # This example is geared towards a test for a specific package       #

- # It does most of the work for you, but may require further coding   #

- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

- 

- # The toplevel namespace within which the test lives.

- TOPLEVEL_NAMESPACE=tools

- 

- # The name of the package under test:

- PACKAGE_NAME=binutils

- 

- # The path of the test below the package:

- RELATIVE_PATH=Sanity/435078-output-of-strings-0-n-is-incorrect

- 

- # Version of the Test. Used with make tag.

- export TESTVERSION=1.1

- 

- # The combined namespace of the test.

- export TEST=/$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)

- 

- 

- # A phony target is one that is not really the name of a file.

- # It is just a name for some commands to be executed when you

- # make an explicit request. There are two reasons to use a

- # phony target: to avoid a conflict with a file of the same

- # name, and to improve performance.

- .PHONY: all install download clean

- 

- # executables to be built should be added here, they will be generated on the system under test.

- BUILT_FILES= 

- 

- # data files, .c files, scripts anything needed to either compile the test and/or run it.

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	chmod a+x ./runtest.sh

- 

- clean:

- 	rm -f *~ *.rpm $(BUILT_FILES)

- 

- # You may need to add other targets e.g. to build executables from source code

- # Add them here:

- 

- 

- # Include Common Makefile

- include /usr/share/rhts/lib/rhts-make.include

- 

- # Generate the testinfo.desc here:

- $(METADATA): Makefile

- 	@touch $(METADATA)

- # Change to the test owner's name

- 	@echo "Owner:        Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:         $(TEST)" >> $(METADATA)

- 	@echo "Path:         $(TEST_DIR)"	>> $(METADATA)

- 	@echo "License:      GPLv2" >> $(METADATA)

- 	@echo "TestVersion:  $(TESTVERSION)"	>> $(METADATA)

- 	@echo "Description:  The output of "strings -0 file" is in loop and "-n 0xA" cannot be correctly recognized">> $(METADATA)

- 	@echo "TestTime:     5m" >> $(METADATA)

- 	@echo "RunFor:       $(PACKAGE_NAME)" >> $(METADATA)  

- # add any other packages for which your test ought to run here

- 	@echo "Requires:     $(PACKAGE_NAME)" >> $(METADATA)  

- # add any other requirements for the script to run here

- 

- # You may need other fields here; see the documentation

- 	rhts-lint $(METADATA)

- 

@@ -1,2 +0,0 @@ 

- Use "strings -0 file", the output will be in loop.

- And "strings -n 0xA file" will report error as "invalid number 0xA"

@@ -1,14 +0,0 @@ 

- summary: The output of strings -0 file is in loop and -n 0xA cannot be correctly recognized

- description: |

-     Use "strings -0 file", the output will be in loop.

-     And "strings -n 0xA file" will report error as "invalid number 0xA"

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- duration: 5m

- extra-summary: /tools/binutils/Sanity/435078-output-of-strings-0-n-is-incorrect

- extra-task: /tools/binutils/Sanity/435078-output-of-strings-0-n-is-incorrect

@@ -1,56 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2009 Red Hat, Inc. All rights reserved.

- #   

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #   

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #   

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include rhts environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- rlJournalStart

-     rlPhaseStartSetup Setup

-         rlAssertRpm $PACKAGE

-         rlShowPackageVersion $PACKAGE

-         rlShowRunningKernel

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

- 	rlRun "echo -e \"asdjkhsd\nsdsdsdssd\n\nsdsd\n\" > tstfile" 0 "Generating test file tstfile"

-     rlPhaseEnd

- 

-     rlPhaseStartTest TestingOne

- 	rlRun "strings -0 tstfile > errorfile 2>&1 &"

- 	rlRun "sleep 5"

- 	rlRun "jobs"

- 	rlRun "kill -9 %1" 1 "strings in the loop"

- 	rlAssertGrep "minim" errorfile

-     rlPhaseEnd

- 

-     rlPhaseStartTest TestingTwo

- 	rlRun "strings -n 0xA tstfile" 0 "echo \"PASS: tstfile processed.\""

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup Cleanup

-         rlBundleLogs "binutils-outputs" errorfile tstfile

-         rlRun "popd"

-         rlRun "rm -r $TmpDir $rlRun_LOG" 0 "Removing tmp directory"

-     rlPhaseEnd

-     rlJournalPrintText

- rlJournalEnd

@@ -1,60 +0,0 @@ 

- # Copyright (c) 2009 Red Hat, Inc. All rights reserved.

- #

- # This program is free software: you can redistribute it and/or modify

- # it under the terms of the GNU General Public License as published by

- # the Free Software Foundation, either version 3 of the License, or

- # (at your option) any later version.

- # 

- # This program is distributed in the hope that it will be useful,

- # but WITHOUT ANY WARRANTY; without even the implied warranty of

- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

- # GNU General Public License for more details.

- # 

- # You should have received a copy of the GNU General Public License

- # along with this program.  If not, see <http://www.gnu.org/licenses/>.

- # 

- # Author: Michal Nowak <mnowak@redhat.com>

- 

- 

- TOPLEVEL_NAMESPACE=/tools

- PACKAGE_NAME=binutils

- RELATIVE_PATH=Sanity/480009-when-mistaking-argument-of-strings

- 

- export TEST=$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	chmod a+x ./runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- 

- $(METADATA): Makefile

- 	@touch $(METADATA)

- 	@echo "Owner:        Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:         $(TEST)" >> $(METADATA)

- 	@echo "Path:         $(TEST_DIR)"       >> $(METADATA)

- 	@echo "TestVersion:  $(TESTVERSION)"    >> $(METADATA)

- 	@echo "Description:  When mistaking the argument of strings command , the same error message is output." >> $(METADATA)

- 	@echo "Bug:          480009" >> $(METADATA)

- 	@echo "Type:         Sanity" >> $(METADATA)

- 	@echo "TestTime:     5m" >> $(METADATA)

- 	@echo "RunFor:       $(PACKAGE_NAME)" >> $(METADATA)

- 	@echo "Requires:     $(PACKAGE_NAME)" >> $(METADATA)

- 	@echo "License:      GPLv3+" >> $(METADATA)

- 	@echo "Releases:     -RHEL4 -RHEL5" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,27 +0,0 @@ 

- [RHEL5.2]

- # strings -n file1

- strings: invalid integer argument file1

- 

- # strings --bytes file1

- strings: invalid integer argument file1

- 

- # strings -n 0

- strings: invalid number 0

- 

- # strings --bytes 0

- strings: invalid number 0

- 

- 

- [RHEL5.3]

- # strings -n file1

- strings: invalid minimum string length 0

- 

- # strings --bytes file1

- strings: invalid minimum string length 0

- 

- # strings -n 0

- strings: invalid minimum string length 0

- 

- # strings --bytes 0

- strings: invalid minimum string length 0

- 

@@ -1,42 +0,0 @@ 

- summary: When mistaking the argument of strings command , the same error message is

-     output.

- description: |+

-     [RHEL5.2]

-     # strings -n file1

-     strings: invalid integer argument file1

- 

-     # strings --bytes file1

-     strings: invalid integer argument file1

- 

-     # strings -n 0

-     strings: invalid number 0

- 

-     # strings --bytes 0

-     strings: invalid number 0

- 

- 

-     [RHEL5.3]

-     # strings -n file1

-     strings: invalid minimum string length 0

- 

-     # strings --bytes file1

-     strings: invalid minimum string length 0

- 

-     # strings -n 0

-     strings: invalid minimum string length 0

- 

-     # strings --bytes 0

-     strings: invalid minimum string length 0

- 

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=480009

- extra-summary: /tools/binutils/Sanity/480009-when-mistaking-argument-of-strings

- extra-task: /tools/binutils/Sanity/480009-when-mistaking-argument-of-strings

@@ -1,49 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- #

- # Copyright (c) 2009 Red Hat, Inc. All rights reserved.

- #

- # This program is free software: you can redistribute it and/or modify

- # it under the terms of the GNU General Public License as published by

- # the Free Software Foundation, either version 3 of the License, or

- # (at your option) any later version.

- # 

- # This program is distributed in the hope that it will be useful,

- # but WITHOUT ANY WARRANTY; without even the implied warranty of

- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

- # GNU General Public License for more details.

- # 

- # You should have received a copy of the GNU General Public License

- # along with this program.  If not, see <http://www.gnu.org/licenses/>.

- # 

- # Author: Michal Nowak <mnowak@redhat.com>

- 

- # source the test script helpers

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE=binutils

- 

- rlJournalStart

- 	rlPhaseStartSetup

- 		rlShowPackageVersion $PACKAGE

- 		rlShowRunningKernel

- 	rlPhaseEnd

- 

- 	rlPhaseStartTest "#1: strings -n file1"

- 		rlRun "strings -n file1 2>&1 | grep 'invalid integer argument file1'" 0 "Produced expected error msg: 'strings: invalid integer argument file1'"

- 	rlPhaseEnd

- 

- 	rlPhaseStartTest "#2: strings --bytes file1"

- 		rlRun "strings --bytes file1 2>&1 | grep 'invalid integer argument file1'" 0 "Produced expected error msg: 'strings: invalid integer argument file1'"

- 	rlPhaseEnd

- 

- 	rlPhaseStartTest "#3: strings -n 0"

- 		rlRun "strings -n 0 2>&1 | grep 'invalid minimum string length 0'" 0 "Produced expected error msg: 'strings: invalid minimum string length 0'"

- 	rlPhaseEnd

- 

- 	rlPhaseStartTest "#4: strings --bytes 0"

- 		rlRun "strings --bytes 0 2>&1 | grep 'invalid minimum string length 0'" 0 "Produced expected error msg: 'strings: invalid minimum string length 0'"

- 	rlPhaseEnd

- 

- 	rlJournalPrintText

- rlJournalEnd

@@ -1,59 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2009 Red Hat, Inc. All rights reserved.

- #   

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #   

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #   

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regressions/readelf/509124-holes-in-debuginfo

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE ascend.C test.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	chmod a+x ./runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     holes in debuginfo" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        15m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils gcc44 gcc gcc44-c++ gcc-c++" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             509124 499164" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHEL5" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,14 +0,0 @@ 

- (1) readelf fix now posted upstream:

-     http://sourceware.org/ml/binutils/2009-07/msg00123.html

- QA: New testcase: binutils-all/testranges.s

- 

- (2) gcc has been fixed based on this bugreport by Jakub upstream:

-     http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40713

-     gcc44 backport request for RHEL-5.5 is: Bug 510958

- 

- (3) Going to be backported for RHEL-5.5 readelf.

-     It has been already fixed by Nick Clifton upstream:

-     http://sourceware.org/ml/binutils/2009-06/msg00418.html

-     http://sourceware.org/ml/binutils-cvs/2009-06/msg00158.html

- QA: RHEL-only new testcase: binutils-all/testloc.S

-     as a part of binutils-all/readelf.exp (not shown when PASSing)    

@@ -1,15 +0,0 @@ 

- class A { 

- public: 

-   A(); 

-   void f(){} 

- };

- 

- class C { 

-   C(); 

- };

- 

- C::C() {

-   A* p = new A; 

-   p->f();

- }

- 

@@ -1,25 +0,0 @@ 

- summary: holes in debuginfo

- description: "(1) readelf fix now posted upstream:\n    http://sourceware.org/ml/binutils/2009-07/msg00123.html\n\

-     QA: New testcase: binutils-all/testranges.s\n\n(2) gcc has been fixed based on\

-     \ this bugreport by Jakub upstream:\n    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40713\n\

-     \    gcc44 backport request for RHEL-5.5 is: Bug 510958\n\n(3) Going to be backported\

-     \ for RHEL-5.5 readelf.\n    It has been already fixed by Nick Clifton upstream:\n\

-     \    http://sourceware.org/ml/binutils/2009-06/msg00418.html\n    http://sourceware.org/ml/binutils-cvs/2009-06/msg00158.html\n\

-     QA: RHEL-only new testcase: binutils-all/testloc.S\n    as a part of binutils-all/readelf.exp\

-     \ (not shown when PASSing)    \n"

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc44

- - gcc

- - gcc44-c++

- - gcc-c++

- duration: 15m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=509124

- extra-summary: /tools/binutils/Regressions/readelf/509124-holes-in-debuginfo

- extra-task: /tools/binutils/Regressions/readelf/509124-holes-in-debuginfo

@@ -1,73 +0,0 @@ 

- #!/bin/bash

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2009 Red Hat, Inc. All rights reserved.

- #   

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #   

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #   

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- # Author: Michal Nowak <mnowak@redhat.com>

- #

- # Include rhts environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- rlJournalStart

-     rlPhaseStartSetup Setup

-         rlAssertRpm $PACKAGE

- 	rlShowPackageVersion $PACKAGE

- 	rlShowRunningKernel

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

- 	cp ascend.C test.c $TmpDir

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     for gcc in $( ls /usr/bin/gcc{,44} 2> /dev/null ); do

-       for opt in s $( seq 0 3 ); do

-         rlPhaseStartTest "ascend.C: gcc=$gcc opt=$opt"

-             rlRun "$gcc -O${opt} ascend.C -c -g"

-             rlAssertExists "ascend.o"

-             # kinda weird running readelf on .o file, but...

-             rlRun "readelf -a -w -W ./ascend.o > /dev/less 2> readelf.errout.g++" 0 "[gcc] Generating readelf output"

-             rlLog "$( cat readelf.errout.g++ )"

- 	    rlAssertNotGrep "readelf" readelf.errout.g++

-             rm -f ./ascend.o

-         rlPhaseEnd

-       done

-     done

- 

-     for gcc in $( ls /usr/bin/gcc{,44} 2> /dev/null ); do

-       for opt in s $( seq 0 3 ); do

-         rlPhaseStartTest "test.c: gcc=$gcc opt=$opt"

-             rlRun "$gcc -O${opt} test.c -c -g"

-             rlAssertExists "test.o"

-             # kinda weird running readelf on .o file, but...

-             rlRun "readelf -a -w -W ./test.o > /dev/less 2> readelf.errout.g++" 0 "[gcc] Generating readelf output"

-             rlLog "$( cat readelf.errout.g++ )"

- 	    rlAssertNotGrep "readelf" readelf.errout.g++

-             rm -f ./test.o

-         rlPhaseEnd

-       done

-     done

- 

-     rlPhaseStartCleanup Cleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

-     rlJournalPrintText

- rlJournalEnd

@@ -1,14 +0,0 @@ 

- void f(int i) {

-   k(i);

- }

- 

- void g(int i) {

-   int j[65537]; 

-   l(i,j);

- }

- 

- struct s {

-   void (*m)(int i); 

-   void (*n)(int i);

- } t={f,g};

- 

@@ -1,59 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2009 Red Hat, Inc. All rights reserved.

- #   

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #   

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #   

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regressions/ld/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE bar.c foo.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	chmod a+x ./runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     ld fails to merge different visibility for the same symbol in distinct object files" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils binutils220" >> $(METADATA)

- 	@echo "Requires:        binutils binutils220 gcc44 gcc" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             531269" >> $(METADATA)

- 	@echo "Architectures:   i386 x86_64" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,19 +0,0 @@ 

- int foo __attribute__ ((section (".gnu.linkonce.d.1"),

-                        visibility ("hidden"))) = 1;

- int

- __attribute__ ((section (".gnu.linkonce.t.1"), visibility ("hidden")))

- bar ()

- {

-  return 1;

- }

- int

- get_foo ()

- {

-  return foo;

- }

- int

- get_bar ()

- {

-  return bar ();

- }

- 

@@ -1,7 +0,0 @@ 

- int foo __attribute__ ((section (".gnu.linkonce.d.1"))) = 1;

- int

- __attribute__ ((section (".gnu.linkonce.t.1")))

- bar ()

- {

-  return 1;

- }

@@ -1,19 +0,0 @@ 

- summary: ld fails to merge different visibility for the same symbol in distinct object

-     files

- description: ''

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- - binutils220

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - binutils220

- - gcc44

- - gcc

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=531269

- extra-summary: /tools/binutils/Regressions/ld/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol

- extra-task: /tools/binutils/Regressions/ld/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol

@@ -1,57 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2009 Red Hat, Inc. All rights reserved.

- #   

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #   

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #   

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- # Author: Michal Nowak <mnowak@redhat.com>

- #

- # Include rhts environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- # Choose the compiler.

- GCC=${GCC:-gcc}

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

- 	rlShowPackageVersion $PACKAGE

- 	rlShowRunningKernel

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

- 	cp foo.c bar.c $TmpDir

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest "gcc=$GCC Testing"

-         rlRun "$GCC -fPIC -c -o foo.o foo.c" 0 "Compile foo.c => foo.o"

-         rlRun "$GCC -fPIC -c -o bar.o bar.c" 0 "Compile bar.c => bar.o"

-         rlRun "ld -shared -o foobar.so foo.o bar.o" 0 "Link foo.o & bar.o => foobar.so"

-         rlAssertExists foobar.so

-         rm foobar.so foo.o bar.o

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup Cleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

-     rlJournalPrintText

- rlJournalEnd

@@ -1,63 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/RELRO-protection-effective

- #   Description: bz1174826

- #   Author: Martin Cermak <mcermak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2014 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/RELRO-protection-effective

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Martin Cermak <mcermak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     bz1174826" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils gcc" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1174826" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,34 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/RELRO-protection-effective

- Description: bz1174826

- Author: Martin Cermak <mcermak@redhat.com>

- Bug summary: RELRO is not read-only on PowerLE

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1174826

- 

- /*                                                                                 

-  * Test to exercise PIE and RELRO provided by Roland McGrath <roland@redhat.com>.

-  *                                                                                 

-  * Description:                                                                    

-  *   Simple test for RELRO, which happens to be a PIE too, but that's only         

-  *   because this kind of example has to be in PIC code to make RELRO relevant, 

-  *   and PIE makes it simpler to write a standalone one-file test than writing  

-  *   a DSO.                                                                        

-  *                                                                                 

-  *   The "const" makes "foo" .rodata material, and the init to an external symbol

-  *   reference makes it require a data relocation.  Enabling -z relro for this  

-  *   link puts that .rodata into a RELRO area.  This program will crash because 

-  *   the page containing "foo" has been made read-only when "main" runs.           

-  *   Without RELRO, it would let you modify "foo" even though it's supposed to  

-  *   be const.                                                                     

-  *                                                                                 

-  * Test with RELRO should fail:                                                    

-  *   $ gcc -pie -fPIE -g  -Wl,-z,relro -o relro relro.c                            

-  *   $ ./relro                                                                     

-  *   Segmentation fault (core dumped)                                              

-  *                                                                                 

-  * Test without RELRO should pass:                                                 

-  *   $ gcc -pie -fPIE -g  -Wl,-z,norelro -o no-relro relro.c                       

-  *   $ ./no-relro                                                                  

-  *                                                                                 

- **/

- 

- 

@@ -1,43 +0,0 @@ 

- summary: bz1174826

- description: "Bug summary: RELRO is not read-only on PowerLE\nBugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1174826\n\

-     \n/*                                                                         \

-     \        \n * Test to exercise PIE and RELRO provided by Roland McGrath <roland@redhat.com>.\n\

-     \ *                                                                          \

-     \       \n * Description:                                                    \

-     \                \n *   Simple test for RELRO, which happens to be a PIE too,\

-     \ but that's only         \n *   because this kind of example has to be in PIC\

-     \ code to make RELRO relevant, \n *   and PIE makes it simpler to write a standalone\

-     \ one-file test than writing  \n *   a DSO.                                  \

-     \                                      \n *                                  \

-     \                                               \n *   The \"const\" makes \"\

-     foo\" .rodata material, and the init to an external symbol\n *   reference makes\

-     \ it require a data relocation.  Enabling -z relro for this  \n *   link puts\

-     \ that .rodata into a RELRO area.  This program will crash because \n *   the\

-     \ page containing \"foo\" has been made read-only when \"main\" runs.        \

-     \   \n *   Without RELRO, it would let you modify \"foo\" even though it's supposed\

-     \ to  \n *   be const.                                                       \

-     \              \n *                                                          \

-     \                       \n * Test with RELRO should fail:                    \

-     \                                \n *   $ gcc -pie -fPIE -g  -Wl,-z,relro -o relro\

-     \ relro.c                            \n *   $ ./relro                        \

-     \                                             \n *   Segmentation fault (core\

-     \ dumped)                                              \n *                  \

-     \                                                               \n * Test without\

-     \ RELRO should pass:                                                 \n *   $\

-     \ gcc -pie -fPIE -g  -Wl,-z,norelro -o no-relro relro.c                      \

-     \ \n *   $ ./no-relro                                                        \

-     \          \n *                                                              \

-     \                   \n**/\n\n\n"

- contact: Martin Cermak <mcermak@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1174826

- extra-summary: /tools/binutils/Regression/RELRO-protection-effective

- extra-task: /tools/binutils/Regression/RELRO-protection-effective

@@ -1,65 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/RELRO-protection-effective

- #   Description: bz1174826

- #   Author: Martin Cermak <mcermak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2014 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

-         touch /tmp/disable-qe-abrt

-         rlRun "TMPD=\$(mktemp -d)"

-         rlRun "pushd $TMPD"

-         cat > relro.c <<-EOF

- #include <stdio.h>

- 

- void *const foo = &stdout;

- 

- int main (void)

- {

-   *(void **) &foo = &stderr;

-   return 0;

- }

- EOF

-         rlRun "gcc -pie -fPIE -g  -Wl,-z,relro -o relro relro.c"

-         rlRun "gcc -pie -fPIE -g  -Wl,-z,norelro -o no-relro relro.c"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "./relro" 139

-         rlRun "./no-relro"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TMPD"

-         rm -f /tmp/disable-qe-abrt

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,63 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot

- #   Description: Test for BZ#1080077 ([RFE] - Please configure ld.bfd to allow --sysroot)

- #   Author: Martin Cermak <mcermak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2014 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Martin Cermak <mcermak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1080077 ([RFE] - Please configure ld.bfd to allow --sysroot)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1080077" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot

- Description: Test for BZ#1080077 ([RFE] - Please configure ld.bfd to allow --sysroot)

- Author: Martin Cermak <mcermak@redhat.com>

- Bug summary: [RFE] - Please configure ld.bfd to allow --sysroot

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1080077

@@ -1,16 +0,0 @@ 

- summary: Test for BZ#1080077 ([RFE] - Please configure ld.bfd to allow --sysroot)

- description: |

-     Bug summary: [RFE] - Please configure ld.bfd to allow --sysroot

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1080077

- contact: Martin Cermak <mcermak@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1080077

- extra-summary: /tools/binutils/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot

- extra-task: /tools/binutils/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot

@@ -1,39 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot

- #   Description: Test for BZ#1080077 ([RFE] - Please configure ld.bfd to allow --sysroot)

- #   Author: Martin Cermak <mcermak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2014 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- rlJournalStart

-     rlPhaseStartTest

-         LD_BDF=$(which ld.bfd)

-         RPM=$(rpm -qf $LD_BDF)

-         rlLogInfo "ld.bfd is $LD_BDF of $RPM"

-         rlRun "ld.bfd --sysroot=/tmp |& grep 'not configured to use sysroots'" 1

-         rlRun "ld.bfd --sysroot=/tmp |& grep 'no input files'"

-     rlPhaseEnd

- rlJournalEnd

@@ -1,65 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED

- #   Description: Test for BZ#1117458 (ld from devtoolset copies SONAME to DT_NEEDED)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2014 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE libtest.tar.gz

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1117458 (ld from devtoolset copies SONAME to DT_NEEDED)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Requires:        devtoolset-3.0-tools-devtoolset-3.0-Install-latest" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1117458" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED

- Description: Test for BZ#1117458 (ld from devtoolset copies SONAME to DT_NEEDED)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: ld from devtoolset copies SONAME to DT_NEEDED without checking if it’s empty

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1117458

@@ -1,3 +0,0 @@ 

- int foo(void) {

- 	return 10;

- }

@@ -1,17 +0,0 @@ 

- summary: Test for BZ#1117458 (ld from devtoolset copies SONAME to DT_NEEDED)

- description: |

-     Bug summary: ld from devtoolset copies SONAME to DT_NEEDED without checking if it’s empty

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1117458

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1117458

- extra-summary: /tools/binutils/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED

- extra-task: /tools/binutils/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED

@@ -1,63 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED

- #   Description: Test for BZ#1117458 (ld from devtoolset copies SONAME to DT_NEEDED)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2014 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp user.c libfoo.c $TmpDir/" 

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "gcc -fPIC -g -c libfoo.c"

-         rlAssertExists "libfoo.o"

-         rlRun "gcc -shared -Wl,-soname, -o libfoo.so -lc libfoo.o 2>&1 | tee out" 0

-         rlAssertExists "libfoo.so"

-         rlLogInfo "gcc output:"

-         rlLogInfo "$(cat out)"

-         rlAssertGrep "SONAME must not be empty string; ignored" out

-         rlRun "objdump -p libfoo.so | grep SONAME | awk '{print \$2}' > soname"

-         if [ "`stat -c '%s' soname`" != "0" ]; then

-             rlLogInfo "SONAME='$(cat soname)'"

-             rlFail "Detected SONAME is empty"

-         fi

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd" # $TmpDir

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,9 +0,0 @@ 

- #include <stdio.h>

- 

- extern int foo(void);

- 

- int main(void) {

- 	int a = foo();

- 	printf("a is %d\n", a);

- 	return 0;

- }

@@ -1,65 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz1172766-ppc64-segv-in-libbfd

- #   Description: Test for BZ#1172766 (ppc64 segv in libbfd)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz1172766-ppc64-segv-in-libbfd

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1172766 (ppc64 segv in libbfd)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        30m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils kernel-debuginfo xz" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1172766" >> $(METADATA)

- 	@echo "Releases:        RHEL7" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz1172766-ppc64-segv-in-libbfd

- Description: Test for BZ#1172766 (ppc64 segv in libbfd)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: ppc64: segv in libbfd

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1172766

@@ -1,20 +0,0 @@ 

- summary: Test for BZ#1172766 (ppc64 segv in libbfd)

- description: |

-     Bug summary: ppc64: segv in libbfd

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1172766

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - elfutils

- - koji

- - kernel-debuginfo

- - xz

- duration: 30m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1172766

- extra-summary: /tools/binutils/Regression/bz1172766-ppc64-segv-in-libbfd

- extra-task: /tools/binutils/Regression/bz1172766-ppc64-segv-in-libbfd

@@ -1,85 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz1172766-ppc64-segv-in-libbfd

- #   Description: Test for BZ#1172766 (ppc64 segv in libbfd)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGES="binutils"

- REQUIRES="${REQUIRES:-kernel-debuginfo}"

- 

- __have_kernel_debuginfo () {

-     local RELEASE ARCH TEMPDIR

-     rlRun "RELEASE=$(uname -r)"

-     rlRun "ARCH=$(uname -m)"

-     if ! rpm -q kernel-debuginfo-$RELEASE &>/dev/null; then

-         rlLogInfo 'kernel-debuginfo not present, trying to install it'

-         rlRun "TEMPDIR=$(mktemp -d -p $HOME)" # $HOME to avoid "small" tmpfs

-         rlRun "pushd '$TEMPDIR'"

-         rlRun "koji download-build -q --debuginfo kernel-$RELEASE --arch $ARCH"

-         rlRun "dnf -y install ./kernel-debuginfo-*.rpm"

-         rlRun 'popd'

-         rlRun "rm -rf '$TEMPDIR'"

-     fi

-     rlAssertRpm kernel-debuginfo-$RELEASE

- }

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "KERNEL=$(uname -a)"

- 

-         __have_kernel_debuginfo

- 

-         rlAssertRpm --all

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

- 

-         rlRun "KERNEL_RELEASE=$(uname -r)"

-         rlRun "KMOD=/usr/lib/modules/$KERNEL_RELEASE/kernel/fs/nfsd/nfsd.ko"

-         rlRun "KMOD_XZ=$KMOD.xz"

-         rlRun "KMOD_DEBUG=/usr/lib/debug/$KMOD.debug"

-         rlAssertExists "$KMOD_DEBUG"

-         rlAssertExists "$KMOD_XZ"

-         [[ -e "$KMOD" ]] || rlRun "unxz -k $KMOD_XZ"

-         rlAssertExists "$KMOD"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "eu-unstrip $KMOD $KMOD_DEBUG --output=$TmpDir/unstripped.ko"

-         rlRun "objdump -drS $TmpDir/unstripped.ko &> /dev/null"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,66 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat

- #   Description: Test for BZ#1226864 (ld crashes on ppc64 when being used with --oformat)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE ldtest.S

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1226864 (ld crashes on ppc64 when being used with --oformat)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        15m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1226864" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

- 	@echo "Architectures:   x86_64 ppc64 ppc64le s390x" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat

- Description: Test for BZ#1226864 (ld crashes on ppc64 when being used with --oformat)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: ld crashes on ppc64 when being used with --oformat binary

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1226864

@@ -1,17 +0,0 @@ 

- summary: Test for BZ#1226864 (ld crashes on ppc64 when being used with --oformat)

- description: |

-     Bug summary: ld crashes on ppc64 when being used with --oformat binary

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1226864

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- duration: 15m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=1226864

- extra-summary: /tools/binutils/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat

- extra-task: /tools/binutils/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat

@@ -1,79 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat

- #   Description: Test for BZ#1226864 (ld crashes on ppc64 when being used with --oformat)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- LD="${LD:-$(which ld)}"

- GCC="${GCC:-$(which gcc)}"

- PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)

- REQUIRES="${REQUIRES:-$(rpm --qf '%{name}\n' -qf $(which $GCC) | head -1)}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "GCC=$GCC"

-         rlLogInfo "LD=$LD"

- 

-         rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"

- 

-         # We optionally need to skip checking for the presence of the metapackage

-         # because that would pull in all the dependent toolset subrpms.  We do not

-         # always want that, especially in CI.

-         _COLLECTIONS="$COLLECTIONS"

-         if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then

-             for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do

-                 rlLogInfo "ignoring metapackage check for collection $c"

-                 export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})

-             done

-         fi

- 

-         rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"

- 

-         rlAssertRpm --all

- 

-         export COLLECTIONS="$_COLLECTIONS"

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp ldtest.S $TmpDir/"

-         rlRun "pushd $TmpDir"

-         rlRun "gcc -c -o ldtest.o ldtest.S"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "ld --oformat=binary -o ldtest.bin ldtest.o"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,64 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit

- #   Description: Test for BZ#1243559 ([aarch64][binutils] relocation truncated to fit)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2016 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE reproducer.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1243559 ([aarch64][binutils] relocation truncated to fit)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        15m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils gcc" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1243559" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit

- Description: Test for BZ#1243559 ([aarch64][binutils] relocation truncated to fit)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: [aarch64][binutils] relocation truncated to fit: R_AARCH64_CALL26 (veneers not inserted)

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1243559

@@ -1,15 +0,0 @@ 

- summary: Test for BZ#1243559 ([aarch64][binutils] relocation truncated to fit)

- description: |

-     Bug summary: [aarch64][binutils] relocation truncated to fit: R_AARCH64_CALL26 (veneers not inserted)

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1243559

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- duration: 15m

- extra-summary: /tools/binutils/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit

- extra-task: /tools/binutils/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit

@@ -1,2 +0,0 @@ 

- void  foo ();

- int main () {foo();}

@@ -1,74 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit

- #   Description: Test for BZ#1243559 ([aarch64][binutils] relocation truncated to fit)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2016 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- PACKAGES="${PACKAGES:-binutils}"

- REQUIRES="${REQUIRES:-}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

- 

-         rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"

- 

-         # We optionally need to skip checking for the presence of the metapackage

-         # because that would pull in all the dependent toolset subrpms.  We do not

-         # always want that, especially in CI.

-         _COLLECTIONS="$COLLECTIONS"

-         if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then

-             for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do

-                 rlLogInfo "ignoring metapackage check for collection $c"

-                 export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})

-             done

-         fi

- 

-         rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"

- 

-         rlAssertRpm --all

- 

-         export COLLECTIONS="$_COLLECTIONS"

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp reproducer.c $TmpDir/"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "gcc -Wl,--defsym=foo=0x80000000 -o reproducer reproducer.c"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,66 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto

- #   Description: Test for BZ#1248929 (ar SEGFAULT when creating static library with lto)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE a.cpp

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1248929 (ar SEGFAULT when creating static library with lto)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        15m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1248929" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

- 	@echo "Architectures:   x86_64" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,8 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto

- Description: Test for BZ#1248929 (ar SEGFAULT when creating static library with lto)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: ar SEGFAULT when creating static library with lto

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1248929

- 

- Relevancy:

- collection = devtoolset-4: PACKAGES=devtoolset-4-binutils REQUIRES=devtoolset-4-gcc

@@ -1,4 +0,0 @@ 

- int f()

- {

- return 0;

- }

@@ -1,19 +0,0 @@ 

- summary: Test for BZ#1248929 (ar SEGFAULT when creating static library with lto)

- description: |

-     Bug summary: ar SEGFAULT when creating static library with lto

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1248929

- 

-     Relevancy:

-     collection = devtoolset-4: PACKAGES=devtoolset-4-binutils REQUIRES=devtoolset-4-gcc

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- - gcc-c++

- duration: 15m

- extra-summary: /tools/binutils/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto

- extra-task: /tools/binutils/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto

@@ -1,77 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto

- #   Description: Test for BZ#1248929 (ar SEGFAULT when creating static library with lto)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- AR="${AR:-$(which ar)}"

- GPP="${GPP:-$(which g++)}"

- PACKAGES="${PACKAGES:-$(rpm --qf '%{name}\n' -qf $(which $AR) | head -1)}"

- REQUIRES="${REQUIRES:-$(rpm --qf '%{name}\n' -qf $(which $GPP) | head -1)}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "AR=$AR"

-         rlLogInfo "GPP=$GPP"

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"

- 

-         # We optionally need to skip checking for the presence of the metapackage

-         # because that would pull in all the dependent toolset subrpms.  We do not

-         # always want that, especially in CI.

-         _COLLECTIONS="$COLLECTIONS"

-         if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then

-             for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do

-                 rlLogInfo "ignoring metapackage check for collection $c"

-                 export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})

-             done

-         fi

- 

-         rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"

- 

-         rlAssertRpm --all

- 

-         export COLLECTIONS="$_COLLECTIONS"

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp a.cpp $TmpDir/"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "g++ -march=native -O3 -flto -c a.cpp"

-         rlRun "gcc-ar cq  a.a a.o"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,64 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow

- #   Description: Test for BZ#1311352 (objdump -S   disassembly code doesn't follow)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2016 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1311352 (objdump -S   disassembly code doesn't follow)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        15m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils strace nscd glibc-debuginfo" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1311352" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow

- Description: Test for BZ#1311352 (objdump -S   disassembly code doesn't follow)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: objdump -S   disassembly code doesn't follow /usr/lib/debug/.... conventions, so can't find sources

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1311352

@@ -1,16 +0,0 @@ 

- summary: Test for BZ#1311352 (objdump -S   disassembly code doesn't follow)

- description: |

-     Bug summary: objdump -S   disassembly code doesn't follow /usr/lib/debug/.... conventions, so can't find sources

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1311352

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - strace

- - coreutils

- duration: 15m

- extra-summary: /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow

- extra-task: /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow

@@ -1,86 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow

- #   Description: Test for BZ#1311352 (objdump -S   disassembly code doesn't follow)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2016 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- OBJDUMP="${OBJDUMP:-$(which objdump)}"

- PACKAGES="${PACKAGES:-$(rpm --qf '%{name}\n' -qf $(which $OBJDUMP) | head -1)}"

- REQUIRES="${REQUIRES:-}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "OBJDUMP=$OBJDUMP"

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"

-         rlRun "ARCH=$(arch)"

- 

-         # We optionally need to skip checking for the presence of the metapackage

-         # because that would pull in all the dependent toolset subrpms.  We do not

-         # always want that, especially in CI.

-         _COLLECTIONS="$COLLECTIONS"

-         if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then

-             for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do

-                 rlLogInfo "ignoring metapackage check for collection $c"

-                 export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})

-             done

-         fi

- 

-         rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"

- 

-         for i in glibc coreutils; do

-             rpm -q ${i}-debuginfo.${ARCH} &>/dev/null || rlRun "debuginfo-install -y ${i}.${ARCH}"

-         done

- 

-         rlAssertRpm --all

- 

-         export COLLECTIONS="$_COLLECTIONS"

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "strace -e trace=open,openat -o strace.out $OBJDUMP -drS /usr/bin/ls &> out"

-         rlRun "grep '/usr/lib/debug' strace.out"

- 

-         # Check whether objdump output contains source code snippets.

-         # ls sources can change in time, but it's likely there always

-         # will be at least one "int i;".

-         rlRun "grep 'int i' out > /dev/null" 0 "Checking for source code snippets in objdump output"

- 

-         rlLogInfo "$(head -n20 out)"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,63 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains

- #   Description: Test for BZ#1366145 (dwz applied to a dts-compiled binary complains)

- #   Author: Sergey Kolosov <skolosov@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2016 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains

- export TESTVERSION=1.1

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Sergey Kolosov <skolosov@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1366145 (dwz applied to a dts-compiled binary complains)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        2h" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils dwz gcc" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1366145" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,18 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains

- Description: Test for BZ#1366145 (dwz applied to a dts-compiled binary complains)

- Author: Sergey Kolosov <skolosov@redhat.com>

- Bug summary: dwz applied to a dts-compiled binary complains about section offsets not monotonically increasing

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1366145

- 

- Needs a bit more complicated relevancy settings. DWZ is not available in RHEL-6 - unless

- you have DTS installed, then you can use (and test) dwz from devtoolset-N-dwz package.

- 

- # First two lines result in "True" when (RHEL6 && DTS).

- distro = rhel-6 && collection = devtoolset-6: REQUIRES="devtoolset-6-gcc devtoolset-6-dwz"

- distro = rhel-6 && collection = devtoolset-4: REQUIRES="devtoolset-4-gcc devtoolset-4-dwz"

- 

- # No DTS? No dwz then.

- distro = rhel-6: False

- 

- # Only RHEL7 remains, and default REQUIRES is good enough for logging. Drop every other distro.

- distro != rhel-7: False

@@ -1,29 +0,0 @@ 

- summary: Test for BZ#1366145 (dwz applied to a dts-compiled binary complains)

- description: |

-     Bug summary: dwz applied to a dts-compiled binary complains about section offsets not monotonically increasing

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1366145

- 

-     Needs a bit more complicated relevancy settings. DWZ is not available in RHEL-6 - unless

-     you have DTS installed, then you can use (and test) dwz from devtoolset-N-dwz package.

- 

-     # First two lines result in "True" when (RHEL6 && DTS).

-     distro = rhel-6 && collection = devtoolset-6: REQUIRES="devtoolset-6-gcc devtoolset-6-dwz"

-     distro = rhel-6 && collection = devtoolset-4: REQUIRES="devtoolset-4-gcc devtoolset-4-dwz"

- 

-     # No DTS? No dwz then.

-     distro = rhel-6: False

- 

-     # Only RHEL7 remains, and default REQUIRES is good enough for logging. Drop every other distro.

-     distro != rhel-7: False

- contact: Sergey Kolosov <skolosov@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - dwz

- - gcc

- duration: 2h

- extra-summary: /tools/binutils/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains

- extra-task: /tools/binutils/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains

@@ -1,64 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains

- #   Description: Test for BZ#1366145 (dwz applied to a dts-compiled binary complains)

- #   Author: Sergey Kolosov <skolosov@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2016 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- LD="${LD:-$(which ld)}"

- PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)

- PACKAGES=${PACKAGE}

- REQUIRES="${REQUIRES:-gcc dwz}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "LD=$LD"

-         rlLogInfo "$(type gcc)"

-         rlAssertRpm --all

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "echo 'int main(void){return 0;}' > test.c" 0 "Generating simple source"

-         rlRun "gcc test.c -g -o test"

-         rlRun "md5sum ./test > t_before_dwz"

-         rlRun "./test" 0 "Test binary is running"

-         rlRun "dwz ./test" 0 "DWZ returns correct result"

-         rlRun "md5sum ./test > t_after_dwz"

-         rlAssertDiffer t_before_dwz t_after_dwz

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,65 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /CoreOS/binutils/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries

- #   Description: Test for BZ#1406430 (binutils ld silently produces broken PIE binaries)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2018 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/CoreOS/binutils/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE pie.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1406430 (binutils ld silently produces broken PIE binaries)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        15m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils gcc" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1406430" >> $(METADATA)

- 	@echo "Releases:        RHEL7" >> $(METADATA)

- 	@echo "Architectures:   s390x" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /CoreOS/binutils/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries

- Description: Test for BZ#1406430 (binutils ld silently produces broken PIE binaries)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: binutils: ld silently produces broken PIE binaries when linking non-PIC objects

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1406430

@@ -1,15 +0,0 @@ 

- summary: Test for BZ#1406430 (binutils ld silently produces broken PIE binaries)

- description: |

-     Bug summary: binutils: ld silently produces broken PIE binaries when linking non-PIC objects

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1406430

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- duration: 15m

- extra-summary: /CoreOS/binutils/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries

- extra-task: /CoreOS/binutils/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries

@@ -1,5 +0,0 @@ 

- int

- main (int argc, char **argv)

- {

-     return strcmp (argv[0], "string") == 0;

- }

@@ -1,61 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /CoreOS/binutils/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries

- #   Description: Test for BZ#1406430 (binutils ld silently produces broken PIE binaries)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2018 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- LD="${LD:-$(which ld)}"

- PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)

- PACKAGES=${PACKAGE}

- REQUIRES="${REQUIRES:-gcc}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "LD=$LD"

-         rlLogInfo "$(type gcc)"

-         rlAssertRpm --all 

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp pie.c $TmpDir/"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "gcc -c pie.c"

-         rlRun "gcc -pie -o pie pie.o" 1

-         rlAssertNotExists "pie"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,65 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /CoreOS/binutils/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized

- #   Description: Test for BZ#1433075 (Rust TLS accesses are badly initialized)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2017 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/CoreOS/binutils/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE repr.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1433075 (Rust TLS accesses are badly initialized)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        15m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1433075" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

- 	@echo "Architectures:   i386" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /CoreOS/binutils/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized

- Description: Test for BZ#1433075 (Rust TLS accesses are badly initialized)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: Rust TLS accesses are badly initialized

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1433075

@@ -1,14 +0,0 @@ 

- summary: Test for BZ#1433075 (Rust TLS accesses are badly initialized)

- description: |

-     Bug summary: Rust TLS accesses are badly initialized

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1433075

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- duration: 15m

- extra-summary: /CoreOS/binutils/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized

- extra-task: /CoreOS/binutils/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized

@@ -1,13 +0,0 @@ 

- #include <stdlib.h>

- #include <stdio.h>

- 

- static __thread int a;

- static int *c;

- 

- int main(int argc, char *argv[])

- {

-  a = 2;

-  c = &a;

-  printf("c=%d\n", *c);

-  return 0;

- }

@@ -1,69 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /CoreOS/binutils/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized

- #   Description: Test for BZ#1433075 (Rust TLS accesses are badly initialized)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2017 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- LD="${LD:-$(which ld)}"

- PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)

- PACKAGES=${PACKAGE}

- REQUIRES="${REQUIRES:-gcc}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "LD=$LD"

-         rlLogInfo "$(type gcc)"

-         rlAssertRpm --all

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp repr.c $TmpDir/"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "gcc -o repr1 -fPIC repr.c"

-         rlRun "./repr1"

- 

-         rlRun "gcc -o repr2 -fPIC -pie repr.c"

-         rlRun "./repr2"

- 

-         rlRun "gcc -o repr3 -ftls-model=local-dynamic -fPIC repr.c"

-         rlRun "./repr3"

- 

-         rlRun "gcc -o repr4 -ftls-model=local-dynamic -fPIC -pie repr.c"

-         rlRun "./repr4"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,64 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/glibc/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to

- #   Description: Test for BZ#1439350 ([LLNL 7.5 FEAT] RFE create an option to)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2018 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/glibc/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE main.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1439350 ([LLNL 7.5 FEAT] RFE create an option to)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        15m" >> $(METADATA)

- 	@echo "RunFor:          binutils glibc" >> $(METADATA)

- 	@echo "Requires:        binutils glibc" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1439350" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /tools/glibc/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to

- Description: Test for BZ#1439350 ([LLNL 7.5 FEAT] RFE create an option to)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: [LLNL 7.5 FEAT] RFE create an option to permanently link in audit library into an executable (glibc)

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1439350

@@ -1,4 +0,0 @@ 

- int main(int argc, char **argv)

- {

-   return 0;

- }

@@ -1,16 +0,0 @@ 

- summary: Test for BZ#1439350 ([LLNL 7.5 FEAT] RFE create an option to)

- description: |

-     Bug summary: [LLNL 7.5 FEAT] RFE create an option to permanently link in audit library into an executable (glibc)

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1439350

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- - glibc

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - glibc

- duration: 15m

- extra-summary: /tools/glibc/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to

- extra-task: /tools/glibc/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to

@@ -1,81 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/glibc/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to

- #   Description: Test for BZ#1439350 ([LLNL 7.5 FEAT] RFE create an option to)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2018 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- LD="${LD:-$(which ld)}"

- PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)

- PACKAGES=${PACKAGE}

- REQUIRES="${REQUIRES}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "LD=$LD"

-         rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"

- 

-         # We optionally need to skip checking for the presence of the metapackage

-         # because that would pull in all the dependent toolset subrpms.  We do not

-         # always want that, especially in CI.

-         _COLLECTIONS="$COLLECTIONS"

-         if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then

-             for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do

-                 rlLogInfo "ignoring metapackage check for collection $c"

-                 export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})

-             done

-         fi

- 

-         rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"

- 

-         rlAssertRpm --all

- 

-         export COLLECTIONS="$_COLLECTIONS"

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp main.c $TmpDir/"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "gcc -o main main.c -Wl,-Paudit.so.1 -z globalaudit &> gcc.out"

-         rlLogInfo "$(cat gcc.out)"

-         rlRun "egrep 'globalaudit ignored' gcc.out" 1

-         rlRun "readelf -d main | grep AUDIT &> readelf.out"

-         rlLogInfo "$(cat readelf.out)"

-         rlRun "egrep 'Dependency audit library: \[audit.so.1\]' readelf.out"

-         rlRun "egrep 'Flags: GLOBAUDIT' readelf.out"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,65 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /CoreOS/binutils/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command

- #   Description: Test for BZ#1465318 ([FJ7.4 Bug] [REG] The results of gprof command)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2017 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/CoreOS/binutils/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE gprof.file.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1465318 ([FJ7.4 Bug] [REG] The results of gprof command)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils gcc" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1465318" >> $(METADATA)

- 	@echo "Releases:        RHEL7" >> $(METADATA)

- 	@echo "Architectures:   x86_64" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /CoreOS/binutils/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command

- Description: Test for BZ#1465318 ([FJ7.4 Bug] [REG] The results of gprof command)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: [FJ7.4 Bug]: [REG] The results of gprof command with some options differ between RHEL7.4 beta and RHEL7.3.

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1465318

@@ -1,4 +0,0 @@ 

- static void fun2(){int i=0;}

-      void fun1(){int i=0;}

-      void fun3(){}

-      int main(){ fun1(); fun2(); return 0;}

@@ -1,15 +0,0 @@ 

- summary: Test for BZ#1465318 ([FJ7.4 Bug] [REG] The results of gprof command)

- description: |

-     Bug summary: [FJ7.4 Bug]: [REG] The results of gprof command with some options differ between RHEL7.4 beta and RHEL7.3.

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1465318

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- duration: 5m

- extra-summary: /CoreOS/binutils/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command

- extra-task: /CoreOS/binutils/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command

@@ -1,77 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /CoreOS/binutils/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command

- #   Description: Test for BZ#1465318 ([FJ7.4 Bug] [REG] The results of gprof command)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2017 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- LD="${LD:-$(which ld)}"

- PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)

- PACKAGES=${PACKAGE}

- REQUIRES="${REQUIRES:-gcc}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "LD=$LD"

-         rlLogInfo "$(type gcc)"

-         rlAssertRpm --all

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp gprof.file.c $TmpDir/"

-         rlRun "pushd $TmpDir"

-         rlRun "gcc -pg -g gprof.file.c -o gprof.file"

-         rlRun "./gprof.file"

-         rlAssertExists "gmon.out"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "gprof -A gprof.file > option-large_A"

-         rlRun "gprof -C gprof.file > option-large_C"

-         rlRun "gprof -l gprof.file > option-l"

- 

-         rlLogInfo "$(cat option-large_A)"

-         rlLogInfo "$(cat option-large_C)"

-         rlLogInfo "$(cat option-l)"

- 

-         rlRun "grep -E '##### -> +void fun3\(\)\{\}' option-large_A"

-         rlRun "grep -E '1 -> +void fun1\(\)\{int i=0;\}' option-large_A"

- 

-         rlRun "grep -E 'gprof.file.c:2: \(fun1:0x[0-9a-z]+\) 1 executions' option-large_C"

- 

-         rlRun "grep -E '0.00 +0.00 +0.00 +1 +0.00 +0.00 +fun1 \(gprof.file.c:2 @ [0-9a-z]+\)' option-l"

-         rlRun "grep -E '\[1\] +0.0 +0.00 +0.00 +1 +fun1 \(gprof.file.c:2 @ [0-9a-z]+\) \[1\]' option-l"

-         rlRun "grep -E '\[1\] fun1 \(gprof.file.c:2 @ [0-9a-z]+\) \[2\] fun2 \(gprof.file.c:1 @ [0-9a-z]+\)' option-l"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,65 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx

- #   Description: Test for BZ#1573872 (ld should allow "lea foo@GOT, %ecx")

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2018 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE reproducer.S

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1573872 (ld should allow \"lea foo@GOT, %ecx\")" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        15m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1573872" >> $(METADATA)

- 	@echo "Releases:        RHEL7 RHEL8" >> $(METADATA)

- 	@echo "Architectures:   x86_64" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx

- Description: Test for BZ#1573872 (ld should allow "lea foo@GOT, %ecx")

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: ld should allow "lea foo@GOT, %ecx"

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1573872

@@ -1,14 +0,0 @@ 

- summary: Test for BZ#1573872 (ld should allow "lea foo@GOT, %ecx")

- description: |

-     Bug summary: ld should allow "lea foo@GOT, %ecx"

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1573872

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- duration: 15m

- extra-summary: /tools/binutils/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx

- extra-task: /tools/binutils/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx

@@ -1,17 +0,0 @@ 

- 	.text

- 	.globl	bar

- 	.type	bar, @function

- bar:

- 	call	__x86.get_pc_thunk.ax

- 	addl	$_GLOBAL_OFFSET_TABLE_, %eax

- 	lea	foo@GOT, %ecx

- 	mov	(%eax,%ecx,1), %eax

- 	ret

- 	.section	.text.__x86.get_pc_thunk.ax,"axG",@progbits,__x86.get_pc_thunk.ax,comdat

- 	.globl	__x86.get_pc_thunk.ax

- 	.hidden	__x86.get_pc_thunk.ax

- 	.type	__x86.get_pc_thunk.ax, @function

- __x86.get_pc_thunk.ax:

- 	movl	(%esp), %eax

- 	ret

- 	.section	.note.GNU-stack,"",@progbits

@@ -1,76 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx

- #   Description: Test for BZ#1573872 (ld should allow "lea foo@GOT, %ecx")

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2018 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- AS="${AS:-$(which as)}"

- PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $AS) | head -1)

- PACKAGES="${PACKAGES:-$PACKAGE}"

- REQUIRES="${REQUIRES:-}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "AS=$AS"

-         rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"

- 

-         # We optionally need to skip checking for the presence of the metapackage

-         # because that would pull in all the dependent toolset subrpms.  We do not

-         # always want that, especially in CI.

-         _COLLECTIONS="$COLLECTIONS"

-         if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then

-             for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do

-                 rlLogInfo "ignoring metapackage check for collection $c"

-                 export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})

-             done

-         fi

- 

-         rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"

- 

-         rlAssertRpm --all

- 

-         export COLLECTIONS="$_COLLECTIONS"

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp reproducer.S $TmpDir/"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "gcc -B./ -m32 -c -o reproducer.o reproducer.S"

-         rlRun "ld -melf_i386 -shared -o libx.so reproducer.o"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,65 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT

- #   Description: Test for BZ#1624776 (binutils ld removes some R_X86_64_JUMP_SLOT)

- #   Author: Edjunior Machado <emachado@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2018 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE reloc.s

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Edjunior Machado <emachado@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1624776 (binutils ld removes some R_X86_64_JUMP_SLOT)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils sed" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1624776" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

- 	@echo "Architectures:   x86_64" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT

- Description: Test for BZ#1624776 (binutils ld removes some R_X86_64_JUMP_SLOT)

- Author: Edjunior Machado <emachado@redhat.com>

- Bug summary: binutils: ld removes some R_X86_64_JUMP_SLOT relocations

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1624776

@@ -1,15 +0,0 @@ 

- summary: Test for BZ#1624776 (binutils ld removes some R_X86_64_JUMP_SLOT)

- description: |

-     Bug summary: binutils: ld removes some R_X86_64_JUMP_SLOT relocations

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1624776

- contact: Edjunior Machado <emachado@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - sed

- duration: 5m

- extra-summary: /tools/binutils/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT

- extra-task: /tools/binutils/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT

@@ -1,3 +0,0 @@ 

- .text

- mov malloc@GOTPCREL(%rip), %rax

- jmp malloc@plt

@@ -1,59 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT

- #   Description: Test for BZ#1624776 (binutils ld removes some R_X86_64_JUMP_SLOT)

- #   Author: Edjunior Machado <emachado@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2018 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="$(rpm -qf $(which ld))"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp reloc.s $TmpDir"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "as -o reloc.o reloc.s"

-         rlAssertExists "reloc.o"

-         rlRun "ld -o reloc.so -shared reloc.o"

-         rlAssertExists "reloc.so"

-         # Conserve the non-zero return value through the pipe

-         set -o pipefail

-         rlRun "readelf -rW reloc.so |& tee readelf.out" 0 "Checking out reloc.so relocation section"

-         rlRun "sed -n '/.rela.dyn/,/^$/p' readelf.out | grep R_X86_64_GLOB_DAT" 0 "Relocation section .rela.dyn should contain R_X86_64_GLOB_DAT entry"

-         rlRun "sed -n '/.rela.plt/,/^$/p' readelf.out | grep R_X86_64_JUMP_SLOT" 0 "Relocation section .rela.plt should contain R_X86_64_JUMP_SLOT entry"

-         rlFileSubmit readelf.out

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,64 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main

- #   Description: Test for BZ#1693661 (rhel8 gold does not resolve the address of main())

- #   Author: Edjunior Machado <emachado@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2019 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE main.c foo.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Edjunior Machado <emachado@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1693661 (rhel8 gold does not resolve the address of main())" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils gcc" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1693661" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHEL6 -RHELClient5 -RHELServer5" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main

- Description: Test for BZ#1693661 (rhel8 gold does not resolve the address of main())

- Author: Edjunior Machado <emachado@redhat.com>

- Bug summary: rhel8 gold does not resolve the address of main() when it is in a shared library in aarch64

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1693661

@@ -1,4 +0,0 @@ 

- int __attribute__ ((noinline)) foo(int x, int y)

- {

-     return x & y;

- }

@@ -1,8 +0,0 @@ 

- #include <stdio.h>

- extern int foo(int, int);

- 

- int main()

- {

-   printf("%d\n", foo(1, 3));

-   return 0;

- }

@@ -1,15 +0,0 @@ 

- summary: Test for BZ#1693661 (rhel8 gold does not resolve the address of main())

- description: |

-     Bug summary: rhel8 gold does not resolve the address of main() when it is in a shared library in aarch64

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1693661

- contact: Edjunior Machado <emachado@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- duration: 5m

- extra-summary: /tools/binutils/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main

- extra-task: /tools/binutils/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main

@@ -1,94 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main

- #   Description: Test for BZ#1693661 (rhel8 gold does not resolve the address of main())

- #   Author: Edjunior Machado <emachado@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2019 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- LD="${LD:-$(which ld.gold)}"

- GCC="${GCC:-$(which gcc)}"

- 

- PACKAGE="${PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)}"

- GCC_PACKAGE="${GCC_PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $GCC) | head -1)}"

- 

- PACKAGES="${PACKAGES:-$PACKAGE}"

- REQUIRES="${REQUIRES:-$GCC_PACKAGE}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "PACKAGE=$PACKAGE"

-         rlLogInfo "LD=$LD"

-         rlLogInfo "GCC=$GCC"

- 

-         rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"

- 

-         # We optionally need to skip checking for the presence of the metapackage

-         # because that would pull in all the dependent toolset subrpms.  We do not

-         # always want that, especially in CI.

-         _COLLECTIONS="$COLLECTIONS"

-         if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then

-             for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do

-                 rlLogInfo "ignoring metapackage check for collection $c"

-                 export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})

-             done

-         fi

- 

-         rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"

- 

-         rlAssertRpm --all

- 

-         export COLLECTIONS="$_COLLECTIONS"

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp main.c foo.c $TmpDir/"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "gcc -o main.o -fPIC -c main.c"

-         rlRun "gcc -shared -o libmain.so main.o"

-         rlRun "gcc -o foo.o -c foo.c"

- 

-         rlLogInfo "Linking with gold..."

-         rlRun "gcc -fuse-ld=gold -o gold.out -lmain -L$PWD -Wl,-v,-rpath=$PWD foo.o"

-         rlAssertExists "gold.out"

-         rlRun "./gold.out" # On bz#1693661, it segfaults

- 

-         rlLogInfo "Linking with bfd..."

-         rlRun "gcc -fuse-ld=bfd -o bfd.out -lmain -L$PWD -Wl,-v,-rpath=$PWD foo.o"

-         rlAssertExists "bfd.out"

-         rlRun "./bfd.out"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,65 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz1785294-binutils-support-secondary-relocation-sections

- #   Description: Test for BZ#1785294 (binutils support secondary relocation sections)

- #   Author: Edjunior Machado <emachado@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2020 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz1785294-binutils-support-secondary-relocation-sections

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE kpatch-3_10_0-1062-1-15.x86_64.ko kpatch-3_10_0-1062-1-15.ppc64le.ko

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Edjunior Machado <emachado@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#1785294 (binutils support secondary relocation sections)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        10m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils grep gawk" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             1785294 1804151 1804149 1804148 1801879" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5 -RHEL6" >> $(METADATA)

- 	@echo "Architectures:   ppc64le x86_64" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz1785294-binutils-support-secondary-relocation-sections

- Description: Test for BZ#1785294 (binutils support secondary relocation sections)

- Author: Edjunior Machado <emachado@redhat.com>

- Bug summary: binutils: support secondary relocation sections [rhel 7.9]

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1785294

@@ -1,16 +0,0 @@ 

- summary: Test for BZ#1785294 (binutils support secondary relocation sections)

- description: |

-     Bug summary: binutils: support secondary relocation sections [rhel 7.9]

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1785294

- contact: Edjunior Machado <emachado@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - grep

- - gawk

- duration: 10m

- extra-summary: /tools/binutils/Regression/bz1785294-binutils-support-secondary-relocation-sections

- extra-task: /tools/binutils/Regression/bz1785294-binutils-support-secondary-relocation-sections

@@ -1,110 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz1785294-binutils-support-secondary-relocation-sections

- #   Description: Test for BZ#1785294 (binutils support secondary relocation sections)

- #   Author: Edjunior Machado <emachado@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2020 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- OBJCOPY="${OBJCOPY:-$(which objcopy)}"

- READELF="${READELF:-$(which readelf)}"

- PACKAGE=$(rpm --qf '%{name}\n' -qf $(which $READELF) | head -1)

- PACKAGES=${PACKAGE}

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "OBJCOPY=$OBJCOPY"

-         rlLogInfo "READELF=$READELF"

-         rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"

- 

-         # We optionally need to skip checking for the presence of the metapackage

-         # because that would pull in all the dependent toolset subrpms.  We do not

-         # always want that, especially in CI.

-         _COLLECTIONS="$COLLECTIONS"

-         if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then

-             for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do

-                 rlLogInfo "ignoring metapackage check for collection $c"

-                 export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})

-             done

-         fi

- 

-         rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"

- 

-         rlAssertRpm --all

- 

-         export COLLECTIONS="$_COLLECTIONS"

- 

-         rlRun "SOURCE_DIR=$(pwd)"

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStart FAIL "Check support"

-         rlRun "ARCH=$(arch)"

-         case "$ARCH" in

-             x86_64 | ppc64le)

-                 KO_FILE="${SOURCE_DIR}/kpatch-3_10_0-1062-1-15.${ARCH}.ko"

-                 rlLogInfo "KO_FILE=$KO_FILE"

-                 HAS_SUPPORT=1

-                 ;;

-             *)

-                 rlLogWarning "Feature not supported on $ARCH"

-                 HAS_SUPPORT=0

-                 ;;

-         esac

-     rlPhaseEnd

- 

- if [ $HAS_SUPPORT = 1 ]; then

-     rlPhaseStartTest

-         rlAssertExists $KO_FILE

-         rlRun "set -o pipefail" 0 "Conserve the non-zero return value through the pipe"

- 

-         # As suggested by nickc@redhat.com:

-         rlRun "objcopy $KO_FILE copy.ko"

-         rlRun "readelf --wide --section-headers copy.ko |& tee readelf_headers.out"

-         rlRun -l "grep \".klp.rela.vmlinux.*\ RELA\ \" readelf_headers.out"

- 

-         # And as suggested by joe.lawrence@redhat.com:

-         rlRun "readelf --wide --relocs $KO_FILE |& tee readelf_relocs.out"

-         rlRun -l "awk \"/^Relocation section '.klp/\" RS='\n\n' ORS='\n\n' readelf_relocs.out"

-         rlRun -l "grep \"^Relocation section '.klp\" readelf_relocs.out"

- 

-         rlRun "readelf --wide --symbols $KO_FILE |& tee readelf_symbols.out"

-         # Section index for these symbols must be SHN_LIVEPATCH (0xff20)

-         rlRun -l "grep '\[0xff20\]\ \.klp\.sym' readelf_symbols.out"

- 

-         rlRun "tar czvf readelf_outputs.tar.gz readelf_headers.out readelf_relocs.out readelf_symbols.out"

-         rlFileSubmit readelf_outputs.tar.gz "${PACKAGE}-readelf_outputs.tar.gz"

-     rlPhaseEnd

- fi

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,64 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regressions/cxxfilt/bz495196-man-page-for-c-filt-contains-unsupported-options

- #   Description: Checks c++filt's man page for unsupported options

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2009 Red Hat, Inc. All rights reserved.

- #   

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #   

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #   

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regressions/cxxfilt/bz495196-man-page-for-c-filt-contains-unsupported-options

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE 

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	chmod a+x ./runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Checks c++filt" >> $(METADATA)

- 	@echo "Type:            Sanity" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             495196 485194 526228 545384" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,3 +0,0 @@ 

- PURPOSE of /tools/binutils/Regressions/cxxfilt/bz495196-man-page-for-c-filt-contains-unsupported-options

- Description: Checks c++filt's man page for unsupported options

- Author: Michal Nowak <mnowak@redhat.com>

@@ -1,14 +0,0 @@ 

- summary: Checks c++filt

- description: ''

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=495196

- extra-summary: /tools/binutils/Regressions/cxxfilt/bz495196-man-page-for-c-filt-contains-unsupported-options

- extra-task: /tools/binutils/Regressions/cxxfilt/bz495196-man-page-for-c-filt-contains-unsupported-options

@@ -1,55 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regressions/cxx-filt/bz495196-man-page-for-c-filt-contains-unsupported-options

- #   Description: Checks c++filt's man page for unsupported options

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2009 Red Hat, Inc. All rights reserved.

- #   

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #   

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #   

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include rhts environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

- 	rlShowPackageVersion binutils

- 	rlShowRunningKernel

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

- 	rlRun "man c++filt | sed $'s/.\x08//g' > cxxfilt.man" 0 "Write prepared cxxfilt man page"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

- 	rlAssertNotGrep "--*strip-underscores" cxxfilt.man --

- 	rlAssertNotGrep "--n*o*-*strip-underscores" cxxfilt.man --

- 	rlAssertNotGrep "--*java" cxxfilt.man --

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

-     rlJournalPrintText

- rlJournalEnd

@@ -1,63 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regressions/ld/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary

- #   Description: This only happens with gcc -static -s; compiling with gcc -static and then stripping with strip works fine.

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2010 Red Hat, Inc. All rights reserved.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 3 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regressions/ld/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE hello-unexpected-reloc-type.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     This only happens with gcc -static -s; compiling with gcc -static and then stripping with strip works fine." >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils binutils220" >> $(METADATA)

- 	@echo "Requires:        binutils glibc-static gcc44 binutils220 glibc-devel" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv3" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             533321" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,3 +0,0 @@ 

- PURPOSE of /tools/binutils/Regressions/ld/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary

- Description: This only happens with gcc -static -s; compiling with gcc -static and then stripping with strip works fine.

- Author: Michal Nowak <mnowak@redhat.com>

@@ -1,5 +0,0 @@ 

- #include <stdio.h>

- int main() {

- 	fprintf(stderr, "Hello world\n");

- 	return 0;

- }

@@ -1,19 +0,0 @@ 

- summary: This only happens with gcc -static -s; compiling with gcc -static and then

-     stripping with strip works fine.

- description: ''

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- - binutils220

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- - glibc-devel

- - glibc-static

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=533321

- extra-summary: /tools/binutils/Regressions/ld/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary

- extra-task: /tools/binutils/Regressions/ld/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary

@@ -1,56 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regressions/ld/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary

- #   Description: This only happens with gcc -static -s; compiling with gcc -static and then stripping with strip works fine.

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2010, 2012 Red Hat, Inc. All rights reserved.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 3 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include rhts environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- # Choose the compiler.

- GCC=${GCC:-gcc}

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

-         rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"

- 	cp hello-unexpected-reloc-type.c $TmpDir

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest "gcc=$GCC"

-         rlRun "$GCC -static -s -o hello-unexpected-reloc-type hello-unexpected-reloc-type.c" 0 "Compiling & linking hello-unexpected-reloc-type.c "

-         rlAssertExists "hello-unexpected-reloc-type"

- 	rlRun "./hello-unexpected-reloc-type"

- 	rm hello-unexpected-reloc-type

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,64 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regressions/ld/bz579696-ld-r-produces-nonzero-sh_addr-values

- #   Description: .text, .data, and .bss show sh_addr values that are not zero.

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2010 Red Hat, Inc. All rights reserved.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 3 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regressions/ld/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE X.o

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:      ld eats all available memory on any -gdwarf-4 compiled object that needs warnings being emitted" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils binutils220" >> $(METADATA)

- 	@echo "Requires:        binutils binutils220 gcc44" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv3" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             579696" >> $(METADATA)

- 	@echo "Architectures:   i386 x86_64" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,19 +0,0 @@ 

- summary: ld eats all available memory on any -gdwarf-4 compiled object that needs

-     warnings being emitted

- description: ''

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- - binutils220

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - binutils220

- - gcc

- - gcc44

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=579696

- extra-summary: /tools/binutils/Regressions/ld/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object

- extra-task: /tools/binutils/Regressions/ld/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object

@@ -1,54 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regressions/ld/bz579696-ld-r-produces-nonzero-sh_addr-values

- #   Description: .text, .data, and .bss show sh_addr values that are not zero.

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2010, 2012 Red Hat, Inc. All rights reserved.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 3 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include rhts environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- # Choose the compiler.

- GCC=${GCC:-gcc}

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

-         rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"

-         cp X.o $TmpDir

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest "gcc=$GCC"

-         rlWatchdog "$GCC -m32 -o X X.o" 5

-         rlAssert0 "gcc/ld finished on it's own" $?

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,56 +0,0 @@ 

- #   Copyright (c) 2010 Red Hat, Inc. All rights reserved.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 3 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regressions/ld/bz587788-ld_-r-generates-R_X86_64_NONE

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE foo.c module-common.lds

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     ld -r generates R_X86_64_NONE" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils binutils220" >> $(METADATA)

- 	@echo "Requires:        binutils gcc44 gcc" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv3" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             587788" >> $(METADATA)

- 	@echo "Architectures:   x86_64" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,42 +0,0 @@ 

- WRONG:

- 

-     $ readelf -r foo2.o

-     

-     Relocation section '.rela.debug_info' at offset 0x618 contains 11 entries:

-       Offset          Info           Type           Sym. Value    Sym. Name + Addend

-     000000000006  00040000000a R_X86_64_32       0000000000000000 .debug_abbrev + 0

-     00000000000c  00080000000a R_X86_64_32       0000000000000000 .debug_str + b

-     000000000011  00080000000a R_X86_64_32       0000000000000000 .debug_str + 38

-     000000000015  00080000000a R_X86_64_32       0000000000000000 .debug_str + 6

-     000000000019  000100000001 R_X86_64_64       0000000000000000 .text + 0

-     000000000021  000100000001 R_X86_64_64       0000000000000000 .text + 0

-     000000000029  00060000000a R_X86_64_32       0000000000000000 .debug_line + 0

-     00000000002e  00080000000a R_X86_64_32       0000000000000000 .debug_str + 33

-     00000000003b  000c00000001 R_X86_64_64       0000000000000004 here + 0

-     00000000004b  00080000000a R_X86_64_32       0000000000000000 .debug_str + 0

- ->  000000000058  000000000000 R_X86_64_NONE                        0000000000000000

-     

-     Relocation section '.rela.debug_pubnames' at offset 0x720 contains 1 entries:

-       Offset          Info           Type           Sym. Value    Sym. Name + Addend

-     000000000006  00050000000a R_X86_64_32       0000000000000000 .debug_info + 0

- 

- 

- OK:

- 

-     Relocation section '.rela.debug_info' at offset 0x628 contains 10 entries:

-       Offset          Info           Type           Sym. Value    Sym. Name + Addend

-     000000000006  00040000000a R_X86_64_32       0000000000000000 .debug_abbrev + 0

-     00000000000c  00080000000a R_X86_64_32       0000000000000000 .debug_str + 1f

-     000000000011  00080000000a R_X86_64_32       0000000000000000 .debug_str + 46

-     000000000015  00080000000a R_X86_64_32       0000000000000000 .debug_str + b

-     000000000019  000100000001 R_X86_64_64       0000000000000000 .text + 0

-     000000000021  000100000001 R_X86_64_64       0000000000000000 .text + 0

-     000000000029  00060000000a R_X86_64_32       0000000000000000 .debug_line + 0

-     00000000002e  00080000000a R_X86_64_32       0000000000000000 .debug_str + 6

-     00000000003b  000c00000001 R_X86_64_64       0000000000000004 here + 0

-     00000000004b  00080000000a R_X86_64_32       0000000000000000 .debug_str + 0

-     

-     Relocation section '.rela.debug_pubnames' at offset 0x730 contains 1 entries:

-       Offset          Info           Type           Sym. Value    Sym. Name + Addend

-     000000000006  00050000000a R_X86_64_32       0000000000000000 .debug_info + 0

- 

@@ -1,1 +0,0 @@ 

- int here, there __attribute__ ((section (".discard")));

@@ -1,48 +0,0 @@ 

- summary: ld -r generates R_X86_64_NONE

- description: "WRONG:\n\n    $ readelf -r foo2.o\n    \n    Relocation section '.rela.debug_info'\

-     \ at offset 0x618 contains 11 entries:\n      Offset          Info           Type\

-     \           Sym. Value    Sym. Name + Addend\n    000000000006  00040000000a R_X86_64_32\

-     \       0000000000000000 .debug_abbrev + 0\n    00000000000c  00080000000a R_X86_64_32\

-     \       0000000000000000 .debug_str + b\n    000000000011  00080000000a R_X86_64_32\

-     \       0000000000000000 .debug_str + 38\n    000000000015  00080000000a R_X86_64_32\

-     \       0000000000000000 .debug_str + 6\n    000000000019  000100000001 R_X86_64_64\

-     \       0000000000000000 .text + 0\n    000000000021  000100000001 R_X86_64_64\

-     \       0000000000000000 .text + 0\n    000000000029  00060000000a R_X86_64_32\

-     \       0000000000000000 .debug_line + 0\n    00000000002e  00080000000a R_X86_64_32\

-     \       0000000000000000 .debug_str + 33\n    00000000003b  000c00000001 R_X86_64_64\

-     \       0000000000000004 here + 0\n    00000000004b  00080000000a R_X86_64_32\

-     \       0000000000000000 .debug_str + 0\n->  000000000058  000000000000 R_X86_64_NONE\

-     \                        0000000000000000\n    \n    Relocation section '.rela.debug_pubnames'\

-     \ at offset 0x720 contains 1 entries:\n      Offset          Info           Type\

-     \           Sym. Value    Sym. Name + Addend\n    000000000006  00050000000a R_X86_64_32\

-     \       0000000000000000 .debug_info + 0\n\n\nOK:\n\n    Relocation section '.rela.debug_info'\

-     \ at offset 0x628 contains 10 entries:\n      Offset          Info           Type\

-     \           Sym. Value    Sym. Name + Addend\n    000000000006  00040000000a R_X86_64_32\

-     \       0000000000000000 .debug_abbrev + 0\n    00000000000c  00080000000a R_X86_64_32\

-     \       0000000000000000 .debug_str + 1f\n    000000000011  00080000000a R_X86_64_32\

-     \       0000000000000000 .debug_str + 46\n    000000000015  00080000000a R_X86_64_32\

-     \       0000000000000000 .debug_str + b\n    000000000019  000100000001 R_X86_64_64\

-     \       0000000000000000 .text + 0\n    000000000021  000100000001 R_X86_64_64\

-     \       0000000000000000 .text + 0\n    000000000029  00060000000a R_X86_64_32\

-     \       0000000000000000 .debug_line + 0\n    00000000002e  00080000000a R_X86_64_32\

-     \       0000000000000000 .debug_str + 6\n    00000000003b  000c00000001 R_X86_64_64\

-     \       0000000000000004 here + 0\n    00000000004b  00080000000a R_X86_64_32\

-     \       0000000000000000 .debug_str + 0\n    \n    Relocation section '.rela.debug_pubnames'\

-     \ at offset 0x730 contains 1 entries:\n      Offset          Info           Type\

-     \           Sym. Value    Sym. Name + Addend\n    000000000006  00050000000a R_X86_64_32\

-     \       0000000000000000 .debug_info + 0\n\n"

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- - binutils220

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc44

- - gcc

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=587788

- extra-summary: /tools/binutils/Regressions/ld/bz587788-ld_-r-generates-R_X86_64_NONE

- extra-task: /tools/binutils/Regressions/ld/bz587788-ld_-r-generates-R_X86_64_NONE

@@ -1,9 +0,0 @@ 

- /*

-  * Common module linker script, always used when linking a module.

-  * Archs are free to supply their own linker scripts.  ld will

-  * combine them automatically.

-  */

- SECTIONS {

-         /DISCARD/ : { *(.discard) }

- }

- 

@@ -1,64 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regressions/ld/bz579696-ld-r-produces-nonzero-sh_addr-values

- #   Description: .text, .data, and .bss show sh_addr values that are not zero.

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2010, 2012 Red Hat, Inc. All rights reserved.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 3 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include rhts environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- # Choose the compiler.

- GCC=${GCC:-gcc}

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

-         rlAssertRpm gcc

- 	rlCheckRpm gcc44

- 	rlCheckRpm binutils220

- 

-         rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"

- 	cp foo.c module-common.lds $TmpDir

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

- 	rlRun "$GCC -c foo.c -g -O0"

- 	rlRun "ld -r -o foo2.o -T module-common.lds foo.o"

- 	rlAssertExists foo2.o

- 	readelf -r foo2.o &> readelf.r

- 	cat readelf.r

- 	rlAssertNotGrep R_X86_64_NONE readelf.r

- 

- 	rm foo2.o foo.o readelf.r

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,64 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable

- #   Description: ELFOSABI_LINUX is incorrectly set in a dynamic ifunc-using executable

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2011 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE bar.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     ELFOSABI_LINUX is incorrectly set in a dynamic ifunc-using executable" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils gcc" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             689829" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,3 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable

- Description: ELFOSABI_LINUX is incorrectly set in a dynamic ifunc-using executable

- Author: Michal Nowak <mnowak@redhat.com>

@@ -1,15 +0,0 @@ 

- summary: ELFOSABI_LINUX is incorrectly set in a dynamic ifunc-using executable

- description: ''

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=689829

- extra-summary: /tools/binutils/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable

- extra-task: /tools/binutils/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable

@@ -1,56 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable

- #   Description: ELFOSABI_LINUX is incorrectly set in a dynamic ifunc-using executable

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2011 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- # Choose the compiler.

- GCC=${GCC:-gcc}

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

-         rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"

-         rlRun "$GCC bar.c -o ${TmpDir}/bar"

-         rlRun "pushd $TmpDir"

-         rlAssertExists "bar"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         readelf -a bar | grep 'OS/ABI' > out

-         rlAssertGrep "UNIX - System V" out

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,66 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz698005-eu-unstrip-do-not-seem-to-match

- #   Description: eu-unstrip: do not seem to match

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2011 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz698005-eu-unstrip-do-not-seem-to-match

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     eu-unstrip: do not seem to match" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             698005" >> $(METADATA)

- 	@echo "Architectures:   i386 x86_64" >> $(METADATA)

- 	@echo "Releases:        -RedHatEnterpriseLinux4 -RedHatEnterpriseLinuxServer5 -RedHatEnterpriseLinuxClient5" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,3 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz698005-eu-unstrip-do-not-seem-to-match

- Description: eu-unstrip: do not seem to match

- Author: Michal Nowak <mnowak@redhat.com>

@@ -1,14 +0,0 @@ 

- summary: 'eu-unstrip: do not seem to match'

- description: ''

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=698005

- extra-summary: /tools/binutils/Regression/bz698005-eu-unstrip-do-not-seem-to-match

- extra-task: /tools/binutils/Regression/bz698005-eu-unstrip-do-not-seem-to-match

@@ -1,61 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz698005-eu-unstrip-do-not-seem-to-match

- #   Description: eu-unstrip: do not seem to match

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2011 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

-         rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     EABI_file="$(file $(find /usr/bin /bin /sbin /usr/sbin/) | grep '(GNU/Linux)' | tail -n1 | awk '{ print $1 }' | sed 's/://g')"

-     rlPhaseStartTest

-       if [ "${EABI_file}" ]; then

-           rlLog "EABI_file = $EABI_file"

-           rlRun "cp -v $EABI_file $TmpDir" 0 "Copy file with GNU/Linux EABI"

-           local_binary="$(basename ${EABI_file})"

-           rlAssertExists ${local_binary}

-           rlRun "strip -R .comment ${local_binary}"

-           file $local_binary > out

-           rlAssertNotGrep "(SYSV)" out

-       else

-           rlDie "There's nothing to test."

-       fi

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,64 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1

- #   Description: Make sure there is .stapsdt.base field

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2011 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Make sure there is .stapsdt.base field" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils glibc systemtap" >> $(METADATA)

- 	@echo "Requires:        binutils glibc.i386 glibc.x86_64 glibc.ppc glibc.ppc64 glibc.s390 glibc.s390x glibc.ia64 glibc.i686" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             748927" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,8 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1

- Description: Make sure there is .stapsdt.base field

- Author: Michal Nowak <mnowak@redhat.com>

- 

- arch = s390,s390x && distro = rhel-7: False

- arch = ppc64 && distro = rhel-7: False

- arch = aarch64: False

- arch = ppc64le: False

@@ -1,28 +0,0 @@ 

- summary: Make sure there is .stapsdt.base field

- description: |

-     arch = s390,s390x && distro = rhel-7: False

-     arch = ppc64 && distro = rhel-7: False

-     arch = aarch64: False

-     arch = ppc64le: False

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- - glibc

- - systemtap

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - glibc.i386

- - glibc.x86_64

- - glibc.ppc

- - glibc.ppc64

- - glibc.s390

- - glibc.s390x

- - glibc.ia64

- - glibc.i686

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=748927

- extra-summary: /tools/binutils/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1

- extra-task: /tools/binutils/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1

@@ -1,59 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1

- #   Description: Make sure there is .stapsdt.base field

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2011 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

-         rlCheckRpm glibc

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

-         rlRun "grep -q CONFIG_UTRACE /boot/config-$( uname -r )" 0,1 || rlLogWarning "Uprobes disabled"

-     rlPhaseEnd

- 

- for ld in $( ls {/emul/ia32-linux,}/lib*/ld-2* 2> /dev/null); do

-     rlPhaseStartTest "${ld} from $( rpmquery -f ${ld} )"

-         filename="$( basename ${ld} ).readline"

-         rlRun "readelf -S ${ld} > $filename" 0 "[$( basename ${ld} )] Write section headers of ${ld}"

-         if ! [[ "$( rlGetArch )" == "ia64" && ! "${ld}" =~ "emul" ]]; then

-             rlAssertGrep ".stapsdt.base " $filename || rlLogError "This may be problem for SystemTap"

-         fi

-         rlAssertNotGrep ".stapsdt.base.1" $filename || rlLogError "This may be problem for SystemTap"

-     rlPhaseEnd

- done

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,64 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables

- #   Description: Tests -pie + -fpie with __thread

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2011 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE w.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Michal Nowak <mnowak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Tests -pie + -fpie with __thread" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils gcc" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             755872" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,3 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables

- Description: Tests -pie + -fpie with __thread

- Author: Michal Nowak <mnowak@redhat.com>

@@ -1,15 +0,0 @@ 

- summary: Tests -pie + -fpie with __thread

- description: ''

- contact: Michal Nowak <mnowak@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=755872

- extra-summary: /tools/binutils/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables

- extra-task: /tools/binutils/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables

@@ -1,55 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables

- #   Description: Tests -pie + -fpie with __thread

- #   Author: Michal Nowak <mnowak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2011 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- # Choose the compiler.

- GCC=${GCC:-gcc}

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

- 	cp w.c $TmpDir

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

- 	rlRun "$GCC -o w -g -O2 -pie -fpie w.c" 0 "Compile __thread with -fpie -pie"

-         rlAssertExists "w"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,7 +0,0 @@ 

- __thread int a;

- 

- int

- main(void)

- {

-   return a;

- }

@@ -1,64 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /CoreOS/binutils/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual

- #   Description: Test for BZ#850832 (The binutils package contains the windmc(1) manual)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2014 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/CoreOS/binutils/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#850832 (The binutils package contains the windmc(1) manual)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             850832" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /CoreOS/binutils/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual

- Description: Test for BZ#850832 (The binutils package contains the windmc(1) manual)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: The binutils package contains the windmc(1) manual page but the utility is not included

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=850832

@@ -1,16 +0,0 @@ 

- summary: Test for BZ#850832 (The binutils package contains the windmc(1) manual)

- description: |

-     Bug summary: The binutils package contains the windmc(1) manual page but the utility is not included

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=850832

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=850832

- extra-summary: /CoreOS/binutils/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual

- extra-task: /CoreOS/binutils/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual

@@ -1,61 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /CoreOS/binutils/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual

- #   Description: Test for BZ#850832 (The binutils package contains the windmc(1) manual)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2014 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "rpm -ql binutils | grep windmc > windmc.txt" 0,1

-         rlLogInfo "$(cat windmc.txt)"

-         rlRun "FILE_CNT=`cat windmc.txt | wc -l`"

-         if [ "$FILE_CNT" == "1" ]; then

-             rlFail "Either windmg manpage or binary is present - both options are wrong."

-         elif [ "$FILE_CNT" == "2" ]; then

-             rlLogWarning "Both windmc manpage and binary are present - this probably should not happen."

-         elif [ "$FILE_CNT" == "0" ]; then

-             rlPass "Windmc manpage nor binary are present"

-         else

-             rlLogWarning "Unexpected number of 'windmc' files present in binutils package - broken package/test?"

-         fi

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,65 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x

- #   Description: Test for BZ#872148 (PIE + __thread produce text relocations on s390(x))

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE reproducer6.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#872148 (PIE + __thread produce text relocations on s390(x))" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        15m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             872148" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,17 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x

- Description: Test for BZ#872148 (PIE + __thread produce text relocations on s390(x))

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: PIE + __thread produce text relocations on s390(x)

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=872148

- 

- Requires systemd without a workaround:

- 

- # PIE is broken on s390 (#868839, #872148)

- %ifnarch s390 s390x

- %global _hardened_build 1

- %endif

- 

- ^^ this is a workaround that makes bug disappear for this particular reproducer.

- So, fetch systemd srpm, comment this condition out, rebuild, install, reboot, then

- you can run this tests. One day I may make this part automatic but replacing systemd

- wouldn't be seen as a good behaviour by other tests run after this task, so not yet.

@@ -1,30 +0,0 @@ 

- summary: Test for BZ#872148 (PIE + __thread produce text relocations on s390(x))

- description: |

-     Bug summary: PIE + __thread produce text relocations on s390(x)

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=872148

- 

-     Requires systemd without a workaround:

- 

-     # PIE is broken on s390 (#868839, #872148)

-     %ifnarch s390 s390x

-     %global _hardened_build 1

-     %endif

- 

-     ^^ this is a workaround that makes bug disappear for this particular reproducer.

-     So, fetch systemd srpm, comment this condition out, rebuild, install, reboot, then

-     you can run this tests. One day I may make this part automatic but replacing systemd

-     wouldn't be seen as a good behaviour by other tests run after this task, so not yet.

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - elfutils

- - gcc

- duration: 15m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=872148

- extra-summary: /tools/binutils/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x

- extra-task: /tools/binutils/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x

@@ -1,20 +0,0 @@ 

- /*

- 	This reproducer is taken from https://sourceware.org/bugzilla/show_bug.cgi?id=6443

- 	Author is Jakub Jelinek <jakub@redhat.com>

- 

- 	gcc -O2 -pie -fpie -o reproducer6 reproducer6.c

- 	eu-readelf -d reproducer6 | grep TEXTREL

- 	test $? -eq 0 && echo FAIL || echo PASS

- */

- 

- __thread int a;

- __thread int b __attribute((tls_model ("local-exec")));

- __thread int c __attribute((tls_model ("initial-exec")));

- __thread int d __attribute((tls_model ("local-dynamic")));

- __thread int e __attribute((tls_model ("global-dynamic")));

- 

- int

- main (void)

- {

-   return a + b + c + d + e;

- }

@@ -1,76 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x

- #   Description: Test for BZ#872148 (PIE + __thread produce text relocations on s390(x))

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGES="binutils"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"

- 

-         # We optionally need to skip checking for the presence of the metapackage

-         # because that would pull in all the dependent toolset subrpms.  We do not

-         # always want that, especially in CI.

-         _COLLECTIONS="$COLLECTIONS"

-         if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then

-             for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do

-                 rlLogInfo "ignoring metapackage check for collection $c"

-                 export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})

-             done

-         fi

- 

-         rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"

- 

-         rlAssertRpm --all

- 

-         export COLLECTIONS="$_COLLECTIONS"

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp reproducer6.c $TmpDir/"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "gcc -O2 -pie -fpie -o reproducer6 reproducer6.c"

-         rlRun "eu-readelf -d reproducer6 > elfutils.log"

-         rlRun "readelf -d reproducer6 > binutils.log"

-         rlAssertNotGrep "TEXTREL" binutils.log

-         rlAssertNotGrep "TEXTREL" elfutils.log

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd" # $TmpDir

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,66 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz895241-Bogus-warning-about-cross-object-references-to

- #   Description: Test for BZ#895241 (Bogus warning about cross object references to)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz895241-Bogus-warning-about-cross-object-references-to

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE t.c u.c v.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#895241 (Bogus warning about cross object references to)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        15m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             895241" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

- 	@echo "Architectures:   x86_64" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,8 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz895241-Bogus-warning-about-cross-object-references-to

- Description: Test for BZ#895241 (Bogus warning about cross object references to)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: Bogus warning about cross object references to hidden symbols in GOLD

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=895241

- 

- Relevancy:

- collection = devtoolset-4: PACKAGES=devtoolset-4-binutils REQUIRES=devtoolset-4-gcc ALTERNATIVES_ROOT=/opt/rh/devtoolset-4/root

@@ -1,20 +0,0 @@ 

- summary: Test for BZ#895241 (Bogus warning about cross object references to)

- description: |

-     Bug summary: Bogus warning about cross object references to hidden symbols in GOLD

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=895241

- 

-     Relevancy:

-     collection = devtoolset-4: PACKAGES=devtoolset-4-binutils REQUIRES=devtoolset-4-gcc ALTERNATIVES_ROOT=/opt/rh/devtoolset-4/root

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- duration: 15m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=895241

- extra-summary: /tools/binutils/Regression/bz895241-Bogus-warning-about-cross-object-references-to

- extra-task: /tools/binutils/Regression/bz895241-Bogus-warning-about-cross-object-references-to

@@ -1,69 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz895241-Bogus-warning-about-cross-object-references-to

- #   Description: Test for BZ#895241 (Bogus warning about cross object references to)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGES="${PACKAGES:-binutils}"

- REQUIRES="${REQUIRES:-gcc}"

- 

- ALTERNATIVES_ROOT="${ALTERNATIVES_ROOT:-}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlAssertRpm --all

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp t.c u.c v.c $TmpDir/"

-         rlRun "pushd $TmpDir"

- 

-         rlRun "alternatives --altdir $ALTERNATIVES_ROOT/etc/alternatives/ --admindir $ALTERNATIVES_ROOT/var/lib/alternatives/ --display ld"

-         rlRun "alternatives --altdir $ALTERNATIVES_ROOT/etc/alternatives/ --admindir $ALTERNATIVES_ROOT/var/lib/alternatives/ --set ld $ALTERNATIVES_ROOT/usr/bin/ld.gold"

-         rlRun "alternatives --altdir $ALTERNATIVES_ROOT/etc/alternatives/ --admindir $ALTERNATIVES_ROOT/var/lib/alternatives/ --display ld"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "gcc v.c -fPIC -shared -olibv.so"

-         rlRun "gcc u.c -fPIC -shared -olibu.so"

-         rlRun "gcc t.c -D_GNU_SOURCE -L. -lu -lv -ldl -Wl,-rpath,`pwd` &> out"

-         rlLogInfo "$(cat out)"

-         rlAssertNotGrep "warning: hidden symbol .* is referenced" out

-         rlRun "./a.out"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "alternatives --altdir $ALTERNATIVES_ROOT/etc/alternatives/ --admindir $ALTERNATIVES_ROOT/var/lib/alternatives/ --auto ld"

-         rlRun "alternatives --altdir $ALTERNATIVES_ROOT/etc/alternatives/ --admindir $ALTERNATIVES_ROOT/var/lib/alternatives/ --display ld"

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,16 +0,0 @@ 

- #include <stdio.h>

- #include <dlfcn.h>

- 

- void foo(void) __attribute__((visibility("hidden")));

- void foo(void) {

-     puts("In executable: foo - before forwarding to DSO");

-       ((void(*)(void))dlsym(RTLD_DEFAULT,"foo"))();

-         puts("In executable: foo - after forwarding to DSO");

- }

- 

- void bar(void);

- 

- int main() {

-     foo();

-       bar();

- }

@@ -1,7 +0,0 @@ 

- #include <stdio.h>

- 

- void foo(void);

- void bar(void) {

-     puts("In DSO: bar");

-       foo();

- }

@@ -1,5 +0,0 @@ 

- #include <stdio.h>

- 

- void foo(void) {

-     puts("In DSO: foo");

- }

@@ -1,64 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/bz916214-binutils-contains-empty-man-pages

- #   Description: Test for BZ#916214 (binutils contains empty man pages)

- #   Author: Miroslav Franc <mfranc@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2013 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/bz916214-binutils-contains-empty-man-pages

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Miroslav Franc <mfranc@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#916214 (binutils contains empty man pages)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        30m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils man man-db" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             916214" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/bz916214-binutils-contains-empty-man-pages

- Description: Test for BZ#916214 (binutils contains empty man pages)

- Author: Miroslav Franc <mfranc@redhat.com>

- Bug summary: binutils contains empty man pages

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=916214

@@ -1,18 +0,0 @@ 

- summary: Test for BZ#916214 (binutils contains empty man pages)

- description: |

-     Bug summary: binutils contains empty man pages

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=916214

- contact: Miroslav Franc <mfranc@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - man

- - man-db

- duration: 30m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=916214

- extra-summary: /tools/binutils/Regression/bz916214-binutils-contains-empty-man-pages

- extra-task: /tools/binutils/Regression/bz916214-binutils-contains-empty-man-pages

@@ -1,68 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/bz916214-binutils-contains-empty-man-pages

- #   Description: Test for BZ#916214 (binutils contains empty man pages)

- #   Author: Miroslav Franc <mfranc@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2013 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm binutils

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

- 	rpm -qd binutils | grep 'man' | while read -r m

-         do

- 	    rlLog "$m"

-             man "$m" | col -b > man.txt 

- 	    rlRun "[[ $(wc -c <man.txt) -ge 2000 ]]"

- 	    rlRun "[[ $(wc -l <man.txt) -ge 50 ]]"

-             rlAssertGrep NAME man.txt

-             rlAssertGrep SYNOPSIS man.txt

-             rlAssertGrep DESCRIPTION man.txt

-             rlAssertGrep OPTIONS man.txt

-             rlAssertGrep COPYRIGHT man.txt

-             rlAssertGrep 'Free Software Foundation' man.txt

-             rlAssertGrep binutils man.txt

- 	    md5sum man.txt >> sums.log

-         done

- 	rlLog "Do we have enough man pages?"

-         rlRun "[[ $(wc -l <sums.log) -ge 14 ]]"

- 	rlLog "Are they all different?"

-         rlRun "[[ $(sort sums.log | uniq | wc -l) -eq $(wc -l <sums.log) ]]"

- 	unset i

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,65 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /CoreOS/binutils/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info

- #   Description: Test for BZ#959422 (TLS variable wrongly relocated on .debug_info)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2014 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/CoreOS/binutils/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE ld-fail.c

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Test for BZ#959422 (TLS variable wrongly relocated on .debug_info)" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        5m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Architectures:   s390x" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Bug:             959422" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,5 +0,0 @@ 

- PURPOSE of /CoreOS/binutils/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info

- Description: Test for BZ#959422 (TLS variable wrongly relocated on .debug_info)

- Author: Milos Prchlik <mprchlik@redhat.com>

- Bug summary: TLS variable wrongly relocated on .debug_info

- Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=959422

@@ -1,8 +0,0 @@ 

- #include <pthread.h>

- 

- __thread const char *tls_var = "hello";

- 

- int main ()

- {

-   return 0;

- }

@@ -1,18 +0,0 @@ 

- summary: Test for BZ#959422 (TLS variable wrongly relocated on .debug_info)

- description: |

-     Bug summary: TLS variable wrongly relocated on .debug_info

-     Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=959422

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - gcc

- - gdb

- duration: 5m

- link:

- -   relates: https://bugzilla.redhat.com/show_bug.cgi?id=959422

- extra-summary: /CoreOS/binutils/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info

- extra-task: /CoreOS/binutils/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info

@@ -1,57 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /CoreOS/binutils/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info

- #   Description: Test for BZ#959422 (TLS variable wrongly relocated on .debug_info)

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2014 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGE="binutils"

- 

- GCC=${GCC:-"gcc"}

- GDB=${GDB:-"gdb"}

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm $PACKAGE

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "cp ld-fail.c $TmpDir/"

-         rlRun "pushd $TmpDir"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "$GCC -lpthread -g3 -O0 ld-fail.c -o ld-fail"

-         rlRun "$GDB ./ld-fail -q -ex start -ex 'print tls_var' -ex cont -ex quit &> gdb.log"

-         rlLogInfo "$(cat gdb.log)"

-         rlRun "grep -P '\\\$1 = 0x[0-9a-f]{1,16} \"hello\"' gdb.log"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,63 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Sanity/dts-probe-binaries

- #   Description: Toolset binutils on system/toolset/built binaries.

- #   Author: Marek Polacek <polacek@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2012 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Sanity/dts-probe-binaries

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE check-localplt.c m.c popcnt.c virtual2.C

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Marek Polacek <mpolacek@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Toolset binutils on system/toolset/built binaries." >> $(METADATA)

- 	@echo "Type:            Sanity" >> $(METADATA)

- 	@echo "TestTime:        120m" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils ed gcc glibc glibc-headers grep gdb gcc-c++ gawk" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,3 +0,0 @@ 

- PURPOSE of /tools/binutils/Sanity/dts-probe-binaries

- Description: Toolset binutils on system/toolset/built binaries.

- Author: Marek Polacek <polacek@redhat.com>

@@ -1,298 +0,0 @@ 

- /* Show local PLT use in DSOs.

-    Copyright (C) 2006 Free Software Foundation, Inc.

-    This file is part of the GNU C Library.

-    Contribute by Ulrich Drepper <drepper@redhat.com>. 2006.

- 

-    The GNU C Library is free software; you can redistribute it and/or

-    modify it under the terms of the GNU Lesser General Public

-    License as published by the Free Software Foundation; either

-    version 2.1 of the License, or (at your option) any later version.

- 

-    The GNU C Library is distributed in the hope that it will be useful,

-    but WITHOUT ANY WARRANTY; without even the implied warranty of

-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU

-    Lesser General Public License for more details.

- 

-    You should have received a copy of the GNU Lesser General Public

-    License along with the GNU C Library; if not, see

-    <http://www.gnu.org/licenses/>.  */

- 

- #include <byteswap.h>

- #include <elf.h>

- #include <endian.h>

- #include <fcntl.h>

- #include <stdint.h>

- #include <stdio.h>

- #include <stdlib.h>

- #include <string.h>

- #include <unistd.h>

- 

- 

- #ifdef BITS

- 

- # define AB(name) _AB (name, BITS)

- # define _AB(name, bits) __AB (name, bits)

- # define __AB(name, bits) name##bits

- # define E(name) _E (name, BITS)

- # define _E(name, bits) __E (name, bits)

- # define __E(name, bits) Elf##bits##_##name

- # define EE(name) _EE (name, BITS)

- # define _EE(name, bits) __EE (name, bits)

- # define __EE(name, bits) ELF##bits##_##name

- # define SWAP(val) \

-   ({ __typeof (val) __res;						      \

-      if (((ehdr.e_ident[EI_DATA] == ELFDATA2MSB				      \

- 	   && BYTE_ORDER == LITTLE_ENDIAN)				      \

- 	  || (ehdr.e_ident[EI_DATA] == ELFDATA2LSB			      \

- 	      && BYTE_ORDER == BIG_ENDIAN))				      \

- 	 && sizeof (val) != 1)						      \

-        {								      \

- 	 if (sizeof (val) == 2)						      \

- 	   __res = bswap_16 (val);					      \

- 	 else if (sizeof (val) == 4)					      \

- 	   __res = bswap_32 (val);					      \

- 	 else								      \

- 	   __res = bswap_64 (val);					      \

-        }								      \

-      else								      \

-        __res = (val);							      \

-      __res; })

- 

- 

- static int

- AB(handle_file) (const char *fname, int fd)

- {

-   E(Ehdr) ehdr;

- 

-   if (pread (fd, &ehdr, sizeof (ehdr), 0) != sizeof (ehdr))

-     {

-     read_error:

-       printf ("%s: read error: %m\n", fname);

-       return 1;

-     }

- 

-   const size_t phnum = SWAP (ehdr.e_phnum);

-   const size_t phentsize = SWAP (ehdr.e_phentsize);

- 

-   /* Read the program header.  */

-   E(Phdr) *phdr = alloca (phentsize * phnum);

-   if (pread (fd, phdr, phentsize * phnum, SWAP (ehdr.e_phoff))

-       != phentsize * phnum)

-     goto read_error;

- 

-   /* Search for the PT_DYNAMIC entry.  */

-   size_t cnt;

-   E(Phdr) *dynphdr = NULL;

-   for (cnt = 0; cnt < phnum; ++cnt)

-     if (SWAP (phdr[cnt].p_type) == PT_DYNAMIC)

-       {

- 	dynphdr = &phdr[cnt];

- 	break;

-       }

- 

-   if (dynphdr == NULL)

-     {

-       printf ("%s: no DYNAMIC segment found\n", fname);

-       return 1;

-     }

- 

-   /* Read the dynamic segment.  */

-   size_t pmemsz = SWAP(dynphdr->p_memsz);

-   E(Dyn) *dyn = alloca (pmemsz);

-   if (pread64 (fd, dyn, pmemsz, SWAP(dynphdr->p_offset)) != pmemsz)

-     goto read_error;

- 

-   /* Search for an DT_PLTREL, DT_JMPREL, DT_PLTRELSZ, DT_STRTAB,

-      DT_STRSZ, and DT_SYMTAB entries.  */

-   size_t pltrel_idx = SIZE_MAX;

-   size_t jmprel_idx = SIZE_MAX;

-   size_t pltrelsz_idx = SIZE_MAX;

-   size_t strtab_idx = SIZE_MAX;

-   size_t strsz_idx = SIZE_MAX;

-   size_t symtab_idx = SIZE_MAX;

-   for (cnt = 0; (cnt + 1) * sizeof (E(Dyn)) - 1 < pmemsz; ++cnt)

-     {

-       unsigned int tag = SWAP (dyn[cnt].d_tag);

- 

-       if (tag == DT_NULL)

- 	/* We reached the end.  */

- 	break;

- 

-       if (tag == DT_PLTREL)

- 	pltrel_idx = cnt;

-       else if (tag == DT_JMPREL)

- 	jmprel_idx = cnt;

-       else if (tag == DT_PLTRELSZ)

- 	pltrelsz_idx = cnt;

-       else if (tag == DT_STRTAB)

- 	strtab_idx = cnt;

-       else if (tag == DT_STRSZ)

- 	strsz_idx = cnt;

-       else if (tag == DT_SYMTAB)

- 	symtab_idx = cnt;

-     }

- 

-   if (pltrel_idx == SIZE_MAX || jmprel_idx == SIZE_MAX

-       || pltrelsz_idx == SIZE_MAX || strtab_idx == SIZE_MAX

-       || strsz_idx == SIZE_MAX || symtab_idx == SIZE_MAX)

-     {

-       puts ("not all PLT information found");

-       return 1;

-     }

- 

-   E(Xword) relsz = SWAP (dyn[pltrelsz_idx].d_un.d_val);

- 

-   void *relmem = NULL;

-   char *strtab = NULL;

-   E(Xword) symtab_offset = 0;

- 

-   /* Find the offset of DT_JMPREL and load the data.  */

-   for (cnt = 0; cnt < phnum; ++cnt)

-     if (SWAP (phdr[cnt].p_type) == PT_LOAD)

-       {

- 	E(Addr) vaddr = SWAP (phdr[cnt].p_vaddr);

- 	E(Xword) memsz = SWAP (phdr[cnt].p_memsz);

- 

- 	if (vaddr <= SWAP (dyn[jmprel_idx].d_un.d_val)

- 	    && vaddr + memsz >= SWAP (dyn[jmprel_idx].d_un.d_val) + relsz)

- 	  {

- 	    relmem = alloca (SWAP (dyn[pltrelsz_idx].d_un.d_val));

- 	    if (pread64 (fd, relmem, relsz,

- 			 SWAP (phdr[cnt].p_offset)

- 			 + SWAP (dyn[jmprel_idx].d_un.d_val) - vaddr)

- 		!= relsz)

- 	      {

- 		puts ("cannot read JMPREL");

- 		return 1;

- 	      }

- 	  }

- 

- 	if (vaddr <= SWAP (dyn[symtab_idx].d_un.d_val)

- 	    && vaddr + memsz > SWAP (dyn[symtab_idx].d_un.d_val))

- 	  symtab_offset = (SWAP (phdr[cnt].p_offset)

- 			   + SWAP (dyn[symtab_idx].d_un.d_val) - vaddr);

- 

- 	if (vaddr <= SWAP (dyn[strtab_idx].d_un.d_val)

- 	    && vaddr + memsz >= (SWAP (dyn[strtab_idx].d_un.d_val)

- 				 + SWAP(dyn[strsz_idx].d_un.d_val)))

- 	  {

- 	    strtab = alloca (SWAP(dyn[strsz_idx].d_un.d_val));

- 	    if (pread64 (fd, strtab, SWAP(dyn[strsz_idx].d_un.d_val),

- 			 SWAP (phdr[cnt].p_offset)

- 			 + SWAP (dyn[strtab_idx].d_un.d_val) - vaddr)

- 		!= SWAP(dyn[strsz_idx].d_un.d_val))

- 	      {

- 		puts ("cannot read STRTAB");

- 		return 1;

- 	      }

- 	  }

-       }

- 

-   if (relmem == NULL || strtab == NULL || symtab_offset == 0)

-     {

-       puts ("couldn't load PLT data");

-       return 1;

-     }

- 

-   if (SWAP (dyn[pltrel_idx].d_un.d_val) == DT_RELA)

-     for (E(Rela) *rela = relmem; (char *) rela - (char *) relmem < relsz;

- 	 ++rela)

-       {

- 	E(Sym) sym;

- 

- 	if (pread64 (fd, &sym, sizeof (sym),

- 		     symtab_offset

- 		     + EE(R_SYM) (SWAP (rela->r_info)) * sizeof (sym))

- 	    != sizeof (sym))

- 	  {

- 	    puts ("cannot read symbol");

- 	    return 1;

- 	  }

- 

- 	if (sym.st_value != 0)

- 	  /* This symbol is locally defined.  */

- 	  printf ("%s: %s\n", basename (fname), strtab + SWAP (sym.st_name));

-       }

-   else

-     for (E(Rel) *rel = relmem; (char *) rel - (char *) relmem < relsz; ++rel)

-       {

- 	E(Sym) sym;

- 

- 	if (pread64 (fd, &sym, sizeof (sym),

- 		     symtab_offset

- 		     + EE(R_SYM) (SWAP (rel->r_info)) * sizeof (sym))

- 	    != sizeof (sym))

- 	  {

- 	    puts ("cannot read symbol");

- 	    return 1;

- 	  }

- 

- 	if (sym.st_value != 0)

- 	  /* This symbol is locally defined.  */

- 	  printf ("%s: %s\n", basename (fname), strtab + SWAP (sym.st_name));

-       }

- 

-   return 0;

- }

- 

- # undef BITS

- #else

- 

- # define BITS 32

- # include "check-localplt.c"

- 

- # define BITS 64

- # include "check-localplt.c"

- 

- 

- static int

- handle_file (const char *fname)

- {

-   int fd = open (fname, O_RDONLY);

-   if (fd == -1)

-     {

-       printf ("cannot open %s: %m\n", fname);

-       return 1;

-     }

- 

-   /* Read was is supposed to be the ELF header.  Read the initial

-      bytes to determine whether this is a 32 or 64 bit file.  */

-   char ident[EI_NIDENT];

-   if (read (fd, ident, EI_NIDENT) != EI_NIDENT)

-     {

-       printf ("%s: read error: %m\n", fname);

-       close (fd);

-       return 1;

-     }

- 

-   if (memcmp (&ident[EI_MAG0], ELFMAG, SELFMAG) != 0)

-     {

-       printf ("%s: not an ELF file\n", fname);

-       close (fd);

-       return 1;

-     }

- 

-   int result;

-   if (ident[EI_CLASS] == ELFCLASS64)

-     result = handle_file64 (fname, fd);

-   else

-     result = handle_file32 (fname, fd);

- 

-   close (fd);

- 

-   return result;

- }

- 

- 

- int

- main (int argc, char *argv[])

- {

-   int cnt;

-   int result = 0;

- 

-   for (cnt = 1; cnt < argc; ++cnt)

-     result |= handle_file (argv[cnt]);

- 

-   return result;

- }

- #endif

@@ -1,6 +0,0 @@ 

- int a (int), b (int), c (int);

- int

- main (void)

- {

-   return a (6) + b (4) - c (2);

- }

@@ -1,20 +0,0 @@ 

- summary: Toolset binutils on system/toolset/built binaries.

- description: ''

- contact: Marek Polacek <mpolacek@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - ed

- - gcc

- - glibc

- - glibc-headers

- - grep

- - gdb

- - gcc-c++

- - gawk

- duration: 120m

- extra-summary: /tools/binutils/Sanity/dts-probe-binaries

- extra-task: /tools/binutils/Sanity/dts-probe-binaries

@@ -1,7 +0,0 @@ 

- #include <stdio.h>

- int

- main (int argc, char *argv[] __attribute__((unused)))

- {

-   printf ("%p\n", main);

-   return __builtin_popcount (argc);

- }

@@ -1,388 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Sanity/dts-probe-binaries

- #   Description: Toolset binutils on system/toolset built binaries.

- #   Author: Marek Polacek <polacek@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2012 Red Hat, Inc. All rights reserved.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGES=(gdb gcc gcc-c++ binutils gawk grep)

- 

- # Choose the binaries.

- GCC=${GCC:-gcc}

- GXX=${GXX:-g++}

- GDB=${GDB:-gdb}

- AR=${AR:-ar}

- ADDR2LINE=${ADDR2LINE:-addr2line}

- CXXFILT=${CXXFILT:-c++filt}

- ELFEDIT=${ELFEDIT:-elfedit}

- NM=${NM:-nm}

- OBJCOPY=${OBJCOPY:-objcopy}

- OBJDUMP=${OBJDUMP:-objdump}

- READELF=${READELF:-readelf}

- SIZE=${SIZE:-size}

- STRINGS=${STRINGS:-strings}

- 

- rlJournalStart

-   rlPhaseStartSetup

-     for p in "${PACKAGES[@]}"; do

-       rlAssertRpm "$p"

-     done; unset p

-     rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-     # Copy the GDB commands file and testcase.

-     rlRun "cp -v check-localplt.c m.c popcnt.c virtual2.C $TmpDir"

-     rlRun "pushd $TmpDir"

-   rlPhaseEnd

- 

-   rlPhaseStartTest "Prepare a binary."

-     # Compile a test case.

-     rlRun "$GCC -O2 -g -std=gnu99 check-localplt.c -o localplt"

-     rlAssertExists "localplt"

-   rlPhaseEnd

- 

-   rlPhaseStartTest "Test ar."

-     # Test --help.

-     rlRun "$AR --help"

- 

-     # We need a few ET_RELs.

-     rlRun "$GCC -O2 -g -std=gnu99 -c -o a.o -xc - <<< 'int a(int a){return a^2;}'"

-     rlAssertExists "a.o"

-     rlRun "$GCC -O2 -g -std=gnu99 -c -o b.o -xc - <<< 'int b(int a){return a&2;}'"

-     rlAssertExists "b.o"

-     rlRun "$GCC -O2 -g -std=gnu99 -c -o c.o -xc - <<< 'int c(int a){return a|2;}'"

-     rlAssertExists "c.o"

-     rlRun "$GCC -O2 -g -std=gnu99 -c -o d.o -xc - <<< 'int d(int a){return a%2;}'"

-     rlAssertExists "d.o"

- 

-     # Test that we can create a static library.

-     rlRun "$AR crsv abc.a a.o b.o c.o"

-     rlAssertExists "abc.a"

- 

-     # ...and use this library.

-     rlRun "$GCC -O2 -Wall -std=gnu99 m.c abc.a -o abc"

-     rlRun "./abc" 2

-     

-     # Test -t option.

-     rlRun "$AR t abc.a > ar-t.out"

-     printf "a.o\nb.o\nc.o\n" > ar-t

-     rlAssertNotDiffer ar-t ar-t.out

- 

-     # Test -d option.

-     rlRun "$AR d abc.a c.o"

-     rlRun "$AR t abc.a > ar-t.out"

-     printf "a.o\nb.o\n" > ar-t

-     rlAssertNotDiffer ar-t ar-t.out

- 

-     # Test -r option.

-     rlRun "$AR r abc.a d.o"

-     rlRun "$AR t abc.a > ar-t.out"

-     printf "a.o\nb.o\nd.o\n" > ar-t

-     rlAssertNotDiffer ar-t ar-t.out

-   rlPhaseEnd

- 

-   rlPhaseStartTest "Test addr2line."

-     rlRun "$ADDR2LINE --help"

-     # Compile a testcase.

-     rlRun "$GCC -g3 -Wall -O2 -o popcnt popcnt.c"

-     # Save the address where main resides.

-     ./popcnt > a

-     rlRun "$ADDR2LINE -e popcnt $(cat a) > r"

-     # We know that main is at line 4.  But on PPC we get ??:0...

- if test ! $(uname -m) = "ppc64"; then

-     rlAssertGrep "popcnt.c:4" r

- fi

-     rm -vf [ra]

-   rlPhaseEnd

- 

-   rlPhaseStartTest "Test c++filt."

-     rlRun "$CXXFILT --help"

-     # Compile a testcase.

-     rlRun "$GXX -g -O0 virtual2.C -o virt"

-     rlRun "$NM virt | $CXXFILT &> f"

-     rlLogInfo "===== f"

-     rlLogInfo "$(cat f)"

-     rlLogInfo "====="

-     rlAssertGrep "A::~A()" f

-     rlAssertGrep "B::~B()" f

-     rlAssertGrep "typeinfo for A" f

-     rlAssertGrep "typeinfo for B" f

-     rlAssertGrep "typeinfo name for A" f

-     rlAssertGrep "typeinfo name for B" f

-     rlAssertGrep "vtable for A" f

-     rlAssertGrep "vtable for B" f

-     rlAssertGrep "operator delete(void\*)" f

-     rlRun "grep -E 'operator new\(unsigned (long|int)\)' f"

-     rlRun "$CXXFILT -n _Z1ft > f"

-     # Create test file.

-     echo "f(unsigned short)" > F

-     rlAssertNotDiffer F f

-     rm -vf [Ff]

-   rlPhaseEnd

- 

-   rlPhaseStartTest "Test elfedit."

-     rlRun "$ELFEDIT --help"

-     # Change the Ehdr somewhat.

-     rlRun "$ELFEDIT --output-osabi=TRU64 virt"

-     rlRun "$ELFEDIT --output-type=rel virt"

-     rlRun "$READELF -Wh virt > r"

-     rlAssertGrep "UNIX - TRU64" r

-     rlAssertGrep "REL (Relocatable file)" r

-     # Ok, back to normal.

-     rlRun "$ELFEDIT --output-osabi=none virt"

-     rlRun "$ELFEDIT --output-type=exec virt"

-     rlRun "$READELF -Wh virt > r"

-     rlAssertGrep "UNIX - System V" r

-     rlAssertGrep "EXEC (Executable file)" r

-     rm -vf r

-   rlPhaseEnd

- 

-   rlPhaseStartTest "Test nm."

-     rlRun "$NM --help"

-     # Try --debug-syms.

-     rlRun "$NM --debug-syms virt | gawk '{ print \$2 \" \" \$3 }' > o"

-     rlLogInfo "$(cat o)"

-     rlAssertGrep "completed" o

-     if [ "`rlGetPrimaryArch`" != "s390x" ] || [ ! rlIsRHEL 7 ]; then

-         rlAssertGrep "virtual2.C" o

-     fi

-     rlAssertGrep "_ZN1BD1Ev" o

-     # On PPC, we have .toc instead.

-     if [ "$(rlGetPrimaryArch)" != "ppc64" ] && [ "$(rlGetPrimaryArch)" != "ppc64le" ]; then

-         rlAssertGrep "_GLOBAL_OFFSET_TABLE_" o

-     fi

-     # Try -u.

-     rlRun "$NM -u popcnt > u"

-     rlAssertGrep "printf@GLIBC" u

-     if [ "`rlGetPrimaryArch`" != "ppc64" ] || [ ! rlIsRHEL 7 ]; then

-         rlAssertGrep "__gmon_start__" u

-     fi

-     rlAssertGrep "__libc_start_main@GLIBC" u

-     # Try -P --size-sort.

-     rlRun "$NM -P --size-sort localplt > p"

- if test $(uname -m) = "ppc64" -a $(rlGetDistroRelease) -gt 5; then

-     rlAssertGrep "main D" p

- else

-     rlAssertGrep "main T" p

- fi

-     rlAssertGrep "completed.* b" p

-     rlAssertGrep "_IO_stdin_used R" p

-     # Try --defined-only --print-size.

-     rlRun "$NM --defined-only --print-size localplt > d"

-     rm -vf [oupd]

-   rlPhaseEnd

- 

-   rlPhaseStartTest "Test objcopy."

-     rlRun "$OBJCOPY --help"

- 

-     cp -v virt xvirt

-     rlRun "$OBJCOPY --only-section=.shstrtab xvirt"

-     rlRun "$READELF -WS xvirt > x"

-     rlAssertGrep ".shstrtab" x

- 

-     # Try to delete .interp section.

-     cp -v virt virt2

-     rlRun "$OBJCOPY -R .interp virt2"

-     rlRun "$READELF -WS virt2 > i"

-     rlAssertNotGrep ".interp" i

- 

-     rm -vf [vcx] xvirt zvirt

-   rlPhaseEnd

- 

-   rlPhaseStartTest "Test objdump."

-     rlRun "$OBJDUMP --help"

-     # Just try to run with -f.

-     rlRun "$OBJDUMP -f virt"

-     # Just try to run with -x.

-     rlRun "$OBJDUMP -wx virt"

-     # -dr.  No good way how to compare this.

-     rlRun "$OBJDUMP -dr virt > d"

-     rlAssertGrep "Disassembly of section .text:" d

-     rlAssertGrep "_start" d

-     rlAssertGrep "main" d

- 

-     # -T.

-     rlRun "$OBJDUMP -T virt > t"

-     rlAssertGrep "abort" t

- 

-     # -R.

-     rlRun "$OBJDUMP -R virt > R"

-     rlAssertGrep "abort" R

- 

-     # -Wl.

-     rlRun "$OBJDUMP -Wl virt > w"

-     rlAssertGrep "Extended opcode 2: set Address to" w

- 

-     # -dr on system binary.

-     rlRun "$OBJDUMP -dr /bin/true > D"

-     rlAssertGrep "Disassembly of section .text:" d

-     rlAssertGrep "_start" d

-     rlAssertGrep "main" d

- 

-     # -R on system binary.

-     rlRun "$OBJDUMP -R /bin/true > r"

-     rlAssertGrep "abort" r

- 

-     # -T.

-     rlRun "$OBJDUMP -T /bin/true > T"

-     rlAssertGrep "abort" T

- 

-     rm -vf [DdrtTwR]

-   rlPhaseEnd

- 

-   rlPhaseStartTest "Test readelf."

-     # Readelf is probably most important, check more things.

-     rlRun "$READELF --help"

- 

-     # Just run with -a.

-     rlRun "$READELF -Wa virt"

- 

-     # Try -h.

-     rlRun "$READELF -Wh virt > h"

-     rlAssertGrep "ELF Header:" h

-     rlAssertGrep "7f 45 4c 46" h

-     rlAssertGrep "EXEC (Executable file)" h

-     rlAssertGrep "Section header string table index:" h

-     rlAssertGrep "ABI Version:" h

- 

-     # Try -l.

-     rlRun "$READELF -Wl virt > l"

-     rlAssertGrep "There are .* program headers, starting at offset" l

-     rlAssertGrep "Section to Segment mapping:" l

-     rlAssertGrep "[Requesting program interpreter: /lib*]" l

- 

-     # Try -S.

-     rlRun "$READELF -WS virt > S"

-     rlAssertGrep "There are .* section headers, starting at offset" S

-     # I don't like rlAssertGrep.

-     rlRun "grep -E '\[[0-9]*\] \.(got|ctors|text|plt|init|symtab|bss|strtab|eh_*)' S"

- 

-     # Try -s.

-     rlRun "$READELF -Ws virt > s"

-     rlAssertGrep "Symbol table '.symtab' contains .* entries:" s

-     rlRun "grep -E '[0-9]*\: [0-9a-f]*[\ \t]*[0-9]* (FUNC|OBJECT|NOTYPE)[\ \t]*(WEAK|GLOBAL)[\ \t]*(DEFAULT|HIDDEN)[\ \t]*([0-9]*|UND|ABS).*' s"

- 

-     # Try -n.

-     rlRun "$READELF -Wn virt > n"

-     rlRun "grep -qE '[Nn]otes.*at.*offset .* with length .*:|Displaying notes found in: .note.ABI-tag' n"

- 

-     # Try -r.

-     rlRun "$READELF -Wr virt > r"

-     rlRun "grep -E 'Relocation section .\.rela?.(dyn|plt). at offset 0x[0-9a-f]+ contains [0-9]+ entries\:' r"

- 

-     # Try -d.

-     rlRun "$READELF -Wd virt > d"

-     rlAssertGrep "Dynamic section at offset .* contains .* entries:" d

-     rlRun "grep -E '0x[0-9a-f]+ \((JMPREL|STRSZ|INIT|NEEDED|VERSYM|RELA|DEBUG|SYMENT|GNU_HASH|STRTAB)\)[\ \t]*(Shared|0x|[0-9]*)' d"

- 

-     # Try -I.

-     rlRun "$READELF -I virt > I"

-     # PPC64 produces no output (?).

-     if [ "$(rlGetPrimaryArch)" != "ppc64" ] && [ "$(rlGetPrimaryArch)" != "ppc64le" ]; then

-         rlAssertGrep "Histogram for .* bucket list length (total of .* buckets):" I

-     fi

- 

-     # Try hex dump.

-     rlRun "$READELF -x .strtab virt > x"

-     rlAssertGrep "Hex dump of section '.strtab':" x

- 

-     # Dump .debug_info.

-     rlRun "$READELF -wi virt > w"

-     rlAssertGrep "Compilation Unit @ offset .*:" w

-     rlAssertGrep "DW_AT_producer" w

-     rlAssertGrep "DW_AT_comp_dir" w

-     rlAssertGrep "DW_TAG_structure_type" w

-     rlRun "grep -E '<[0-9]+><[0-9a-f]+>\: Abbrev Number\: [0-9]+ \(DW_TAG_.*\)' w"

-     rlRun "grep -E '<[0-9]+>[\ \t]+DW_AT_.*\:' w"

- 

-     # Version info.

-     rlRun "$READELF -V virt > V"

-     rlAssertGrep "Version symbols section '.gnu.version' contains .* entries:" V

-     rlRun "grep -E '(0x)?[0-9a-f]*\: Version\:.*File\:.*Cnt\: [0-9]+' V"

- 

-     # Try -h on /bin/true.

-     rlRun "$READELF -Wh /bin/true > H"

-     rlAssertGrep "ELF Header:" H

-     rlAssertGrep "7f 45 4c 46" H

-     rlAssertGrep "DYN (Position-Independent Executable file)" H

-     rlAssertGrep "Section header string table index:" H

-     rlAssertGrep "ABI Version:" H

- 

-     # Try -l on /bin/true.

-     rlRun "$READELF -Wl /bin/true > L"

-     rlAssertGrep "There are .* program headers, starting at offset" L

-     rlAssertGrep "Section to Segment mapping:" L

-     rlAssertGrep "[Requesting program interpreter: /lib*]" L

- 

-     # Try -S on /bin/true.

-     rlRun "$READELF -WS /bin/true > F"

-     rlAssertGrep "There are .* section headers, starting at offset" F

-     rlRun "grep -E '\[[0-9]*\] \.(got|ctors|text|plt|init|symtab|bss|strtab|eh_*)' F"

- 

-     # Try -r on /bin/true.

-     rlRun "$READELF -Wr /bin/true > c"

-     rlRun "grep -E 'Relocation section .\.rela?.(dyn|plt). at offset 0x[0-9a-f]+ contains [0-9]+ entries\:' c"

- 

-     rm -vf [HIwhnSLslcrxVdF]

-   rlPhaseEnd

- 

-   rlPhaseStartTest "Test size."

-     rlRun "$SIZE --help"

- 

-     rlRun "$SIZE -dB virt > s"

-     rlAssertGrep "text.*data.*bss.*dec.*hex.*filename" s

- 

-     rlRun "$SIZE -dB /bin/ed > S"

-     rlAssertGrep "text.*data.*bss.*dec.*hex.*filename" S

- 

-     rm -vf [Ss]

-   rlPhaseEnd

- 

-   rlPhaseStartTest "Test strings."

-     rlRun "$STRINGS --help"

- 

-     # Try on our binary.

-     rlRun "$STRINGS virt > s"

-     rlAssertGrep "__gmon_start__" s

-     rlAssertGrep "libc.so.6" s

-     rlAssertGrep "abort" s

-     rlAssertGrep "libm.so.6" s

- 

-     # Try on system binary.

-     rlRun "$STRINGS /bin/echo > S"

-     rlAssertGrep "abort" S

-     rlAssertGrep "echo" S

-     rlAssertGrep "POSIXLY_CORRECT" S

-     rlAssertGrep "libc.so.6" S

- 

-     rm -vf [Ss]

-   rlPhaseEnd

- 

-   rlPhaseStartCleanup

-     rlRun "popd"

-     rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-   rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,31 +0,0 @@ 

- // PR c++/52746

- // { dg-do run }

- 

- extern "C" int printf(const char*,...);

- extern "C" void abort();

- bool db;

- 

- struct A

- {

-   virtual ~A() {}

- };

- 

- struct B : public A

- {

-   virtual ~B() { db = true; }

- };

- 

- template<int> void test()

- {

-   B * b = new B;

-   A * a = b;

-   a->~A();

-   ::operator delete(b);

- }

- 

- int main()

- {

-   test<0>();

-   if (!db)

-     abort();

- }

@@ -1,64 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Sanity/rebuild-coreutils

- #   Description: Rebuild coreutils

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Sanity/rebuild-coreutils

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Rebuild coreutils" >> $(METADATA)

- 	@echo "Type:            Sanity" >> $(METADATA)

- 	@echo "TestTime:        1h" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,3 +0,0 @@ 

- PURPOSE of /tools/binutils/Sanity/rebuild-coreutils

- Description: Rebuild coreutils

- Author: Milos Prchlik <mprchlik@redhat.com>

@@ -1,14 +0,0 @@ 

- summary: Rebuild coreutils

- description: ''

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - koji

- - rpm-build

- duration: 1h

- extra-summary: /tools/binutils/Sanity/rebuild-coreutils

- extra-task: /tools/binutils/Sanity/rebuild-coreutils

@@ -1,65 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Sanity/rebuild-coreutils

- #   Description: Rebuild coreutils

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGES="binutils"

- REQUIRES="${REQUIRES:-coreutils}"

- TEST_USER="${TEST_USER:-jouda}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlAssertRpm --all

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

- 

-         rlRun 'dnf -y update coreutils' 0-255

- 

-         rlRun "koji download-build --arch=src $(rpm -q coreutils)"

-         rlRun "SRPM=`find . -name 'coreutils-*.src.rpm'`"

-         rlRun "dnf builddep -y $SRPM"

- 

-         rlRun "userdel -r $TEST_USER" 0,6

-         rlRun "useradd -m -d /home/$TEST_USER $TEST_USER"

-         rlRun "cp $SRPM /home/$TEST_USER"

-         rlRun "su - $TEST_USER -c 'rpm -Uvh $SRPM'"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "su - $TEST_USER -c 'rpmbuild -bc --clean \$(rpm --eval=%_specdir)/coreutils.spec'"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "userdel -r $TEST_USER"

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,67 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Regression/rebuild-emacs

- #   Description: rebuild-emacs

- #   Author: Martin Cermak <mcermak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Regression/rebuild-emacs

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- requires = alsa-lib-devel atk-devel binutils cairo-devel dbus-devel emacs fontconfig-devel freetype-devel \

-            GConf2-devel giflib-devel gnutls-devel gpm-devel gtk3-devel ImageMagick-devel libjpeg-devel \

-            liblockfile-devel libotf-devel libpng-devel librsvg2-devel libselinux-devel libtiff-devel \

-            libX11-devel libXau-devel libXdmcp-devel libXpm-devel libXrender-devel libXt-devel m17n-lib-devel \

-            ncurses-devel python2-devel texinfo xorg-x11-proto-devel pango pango-devel yum-utils

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Martin Cermak <mcermak@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     rebuild-emacs" >> $(METADATA)

- 	@echo "Type:            Regression" >> $(METADATA)

- 	@echo "TestTime:        24h" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	$(foreach  package, $(requires), echo "Requires:        $(package)" >> $(METADATA);)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2+" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,21 +0,0 @@ 

- PURPOSE of /tools/binutils/Regression/rebuild-emacs

- Description: rebuild-emacs

- Author: Martin Cermak <mcermak@redhat.com>

- 

- 

- From: Jeff Law

- 

- ... stuff deleted ...

- 

- emacs is highly sensitive to the order and structure of executables

- produced by the linker.  This is an artifact of its undumping mechanism

- (essentially starts emacs, loads a bunch of stuff, core dumps, then

- turns the core dump into a new executable).

- 

- We've seen a lot of pain around this for ppc64le as well as after the

- RELRO improvements we made to binutils/ld over the last 6 months.

- 

- ISTM that the testing plans for RHEL going forward ought to include a

- test build of emacs with the new binutils installed.  No further tests

- are necessary since the build process for emacs exercises the

- problematic bits.

@@ -1,64 +0,0 @@ 

- summary: rebuild-emacs

- description: |

-     From: Jeff Law

- 

-     ... stuff deleted ...

- 

-     emacs is highly sensitive to the order and structure of executables

-     produced by the linker.  This is an artifact of its undumping mechanism

-     (essentially starts emacs, loads a bunch of stuff, core dumps, then

-     turns the core dump into a new executable).

- 

-     We've seen a lot of pain around this for ppc64le as well as after the

-     RELRO improvements we made to binutils/ld over the last 6 months.

- 

-     ISTM that the testing plans for RHEL going forward ought to include a

-     test build of emacs with the new binutils installed.  No further tests

-     are necessary since the build process for emacs exercises the

-     problematic bits.

- contact: Martin Cermak <mcermak@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - alsa-lib-devel

- - atk-devel

- - binutils

- - cairo-devel

- - dbus-devel

- - emacs

- - fontconfig-devel

- - freetype-devel

- - GConf2-devel

- - giflib-devel

- - gnutls-devel

- - gpm-devel

- - gtk3-devel

- - ImageMagick-devel

- - libjpeg-devel

- - liblockfile-devel

- - libotf-devel

- - libpng-devel

- - librsvg2-devel

- - libselinux-devel

- - libtiff-devel

- - libX11-devel

- - libXau-devel

- - libXdmcp-devel

- - libXpm-devel

- - libXrender-devel

- - libXt-devel

- - m17n-lib-devel

- - ncurses-devel

- - python2-devel

- - texinfo

- - xorg-x11-proto-devel

- - pango

- - pango-devel

- - yum-utils

- - koji

- - rpm-build

- duration: 24h

- extra-summary: /tools/binutils/Regression/rebuild-emacs

- extra-task: /tools/binutils/Regression/rebuild-emacs

@@ -1,79 +0,0 @@ 

- #!/bin/bash

- # vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Regression/rebuild-emacs

- #   Description: rebuild-emacs

- #   Author: Martin Cermak <mcermak@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This program is free software: you can redistribute it and/or

- #   modify it under the terms of the GNU General Public License as

- #   published by the Free Software Foundation, either version 2 of

- #   the License, or (at your option) any later version.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE.  See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public License

- #   along with this program. If not, see http://www.gnu.org/licenses/.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- PACKAGES="${PACKAGES:-binutils}"

- REQUIRES="${REQUIRES:-emacs}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"

- 

-         # We optionally need to skip checking for the presence of the metapackage

-         # because that would pull in all the dependent toolset subrpms.  We do not

-         # always want that, especially in CI.

-         _COLLECTIONS="$COLLECTIONS"

-         if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then

-             for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do

-                 rlLogInfo "ignoring metapackage check for collection $c"

-                 export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})

-             done

-         fi

- 

-         rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"

- 

-         rlAssertRpm --all

- 

-         export COLLECTIONS="$_COLLECTIONS"

- 

-         rlRun "TMPD=$(mktemp -d)"

-         rlRun "pushd $TMPD"

-         rlRun "koji download-build --arch=src $(rpm -q emacs)"

-         rlRun "rpm --define='_topdir $TMPD' -Uvh *src.rpm"

- 

-         rlRun "saved_randomize_va_space=$(cat /proc/sys/kernel/randomize_va_space)"

-         rlRun "echo '1' > /proc/sys/kernel/randomize_va_space"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "dnf builddep -y SPECS/emacs.spec"

-         rlRun "rpmbuild --define='_topdir $TMPD' -bc SPECS/emacs.spec"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "echo \"$saved_randomize_va_space\" > /proc/sys/kernel/randomize_va_space"

- 

-         rlRun "popd"

-         rlRun "rm -r $TMPD"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,65 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Sanity/rebuild-wget

- #   Description: Rebuild wget

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Sanity/rebuild-wget

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Milos Prchlik <mprchlik@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     Rebuild wget" >> $(METADATA)

- 	@echo "Type:            Sanity" >> $(METADATA)

- 	@echo "TestTime:        1h" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils" >> $(METADATA)

- 	@echo "Requires:        wget rpm-build gcc" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    yes" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,3 +0,0 @@ 

- PURPOSE of /tools/binutils/Sanity/rebuild-wget

- Description: Rebuild wget

- Author: Milos Prchlik <mprchlik@redhat.com>

@@ -1,16 +0,0 @@ 

- summary: Rebuild wget

- description: ''

- contact: Milos Prchlik <mprchlik@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - wget

- - koji

- - rpm-build

- - gcc

- duration: 1h

- extra-summary: /tools/binutils/Sanity/rebuild-wget

- extra-task: /tools/binutils/Sanity/rebuild-wget

@@ -1,86 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Sanity/rebuild-wget

- #   Description: Rebuild wget

- #   Author: Milos Prchlik <mprchlik@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- LD="${LD:-$(which ld)}"

- GCC="${GCC:-$(which gcc)}"

- 

- BINUTILS_PACKAGE="$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)"

- GCC_PACKAGE="$(rpm --qf '%{name}\n' -qf $(which $GCC) | head -1)"

- 

- PACKAGES="${PACKAGES:-$BINUTILS_PACKAGE}"

- REQUIRES="${REQUIRES:-$GCC_PACKAGE wget}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "LD=$LD"

-         rlLogInfo "GCC=$GCC"

-         rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"

- 

-         # We optionally need to skip checking for the presence of the metapackage

-         # because that would pull in all the dependent toolset subrpms.  We do not

-         # always want that, especially in CI.

-         _COLLECTIONS="$COLLECTIONS"

-         if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then

-             for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do

-                 rlLogInfo "ignoring metapackage check for collection $c"

-                 export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})

-             done

-         fi

- 

-         rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"

- 

-         rlAssertRpm --all

- 

-         export COLLECTIONS="$_COLLECTIONS"

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

- 

-         rlRun "koji download-build --arch=src $(rpm -q wget)"

-         rlRun "SRPM=`find . -name 'wget-*.src.rpm'`"

-         rlRun "SRPM_SPECDIR=`rpm --eval=%_specdir`"

-         rlRun "rpm -Uvh $SRPM"

-         rlRun "dnf builddep -y $SRPM"

-     rlPhaseEnd

- 

-     rlPhaseStartTest

-         rlRun "rpmbuild -bb --clean $SRPM_SPECDIR/wget.spec"

-     rlPhaseEnd

- 

-     rlPhaseStartCleanup

-         rlRun "popd"

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

@@ -1,68 +0,0 @@ 

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Makefile of /tools/binutils/Sanity/testsuite

- #   Description: The test rebuilds binutils.src.rpm and runs the suite.

- #   Author: Michael Petlan <mpetlan@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- export TEST=/tools/binutils/Sanity/testsuite

- export TESTVERSION=1.0

- 

- BUILT_FILES=

- 

- FILES=$(METADATA) runtest.sh Makefile PURPOSE \

- 			expected-fails-8.0.0-aarch64.txt \

- 			expected-fails-8.0.0-s390x.txt \

- 			expected-fails-8.2.0-aarch64.txt \

- 			expected-fails-8.2.0-s390x.txt

- 

- .PHONY: all install download clean

- 

- run: $(FILES) build

- 	./runtest.sh

- 

- build: $(BUILT_FILES)

- 	test -x runtest.sh || chmod a+x runtest.sh

- 

- clean:

- 	rm -f *~ $(BUILT_FILES)

- 

- 

- include /usr/share/rhts/lib/rhts-make.include

- 

- $(METADATA): Makefile

- 	@echo "Owner:           Michael Petlan <mpetlan@redhat.com>" > $(METADATA)

- 	@echo "Name:            $(TEST)" >> $(METADATA)

- 	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)

- 	@echo "Path:            $(TEST_DIR)" >> $(METADATA)

- 	@echo "Description:     The test rebuilds binutils.src.rpm and runs the suite." >> $(METADATA)

- 	@echo "Type:            Sanity" >> $(METADATA)

- 	@echo "TestTime:        3h" >> $(METADATA)

- 	@echo "RunFor:          binutils" >> $(METADATA)

- 	@echo "Requires:        binutils texinfo glibc-static dejagnu bison flex zlib-static sharutils yum-utils libstdc++-static rpm-build gcc-c++ annobin" >> $(METADATA)

- 	@echo "Priority:        Normal" >> $(METADATA)

- 	@echo "License:         GPLv2" >> $(METADATA)

- 	@echo "Confidential:    no" >> $(METADATA)

- 	@echo "Destructive:     no" >> $(METADATA)

- 	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)

- 

- 	rhts-lint $(METADATA)

@@ -1,3 +0,0 @@ 

- PURPOSE of /tools/binutils/Sanity/testsuite

- Description: The test rebuilds binutils.src.rpm and runs the suite.

- Author: Michael Petlan <mpetlan@redhat.com>

@@ -1,25 +0,0 @@ 

- summary: The test rebuilds binutils.src.rpm and runs the suite.

- description: ''

- contact: Michael Petlan <mpetlan@redhat.com>

- component:

- - binutils

- test: ./runtest.sh

- framework: beakerlib

- recommend:

- - binutils

- - texinfo

- - glibc-static

- - dejagnu

- - bison

- - flex

- - zlib-static

- - sharutils

- - yum-utils

- - libstdc++-static

- - rpm-build

- - gcc-c++

- - annobin

- - koji

- duration: 3h

- extra-summary: /tools/binutils/Sanity/testsuite

- extra-task: /tools/binutils/Sanity/testsuite

@@ -1,149 +0,0 @@ 

- #!/bin/bash

- # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   runtest.sh of /tools/binutils/Sanity/testsuite

- #

- #   Description: The test rebuilds binutils.src.rpm and runs the suite.

- #   The test is based on /tools/binutils/testsuite, but it had to be

- #   rewritten.

- #

- #   Author: Michael Petlan <mpetlan@redhat.com>

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- #

- #   Copyright (c) 2015 Red Hat, Inc.

- #

- #   This copyrighted material is made available to anyone wishing

- #   to use, modify, copy, or redistribute it subject to the terms

- #   and conditions of the GNU General Public License version 2.

- #

- #   This program is distributed in the hope that it will be

- #   useful, but WITHOUT ANY WARRANTY; without even the implied

- #   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

- #   PURPOSE. See the GNU General Public License for more details.

- #

- #   You should have received a copy of the GNU General Public

- #   License along with this program; if not, write to the Free

- #   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

- #   Boston, MA 02110-1301, USA.

- #

- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- 

- # Include Beaker environment

- . /usr/share/beakerlib/beakerlib.sh || exit 1

- 

- LD="${LD:-$(which ld)}"

- GCC="${GCC:-$(which gcc)}"

- BUILT_BY="${BUILT_BY:-$(which built-by)}"

- 

- PACKAGE="${PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)}"

- NVR="$(rpm -q --qf='%{NAME}-%{VERSION}-%{RELEASE}' $PACKAGE)"

- GCC_PACKAGE="${GCC_PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $GCC) | head -1)}"

- ANNOBIN_PACKAGE="${ANNOBIN_PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $BUILT_BY) | head -1)}"

- 

- PACKAGES="${PACKAGES:-$PACKAGE}"

- REQUIRES="${REQUIRES:-$GCC_PACKAGE $ANNOBIN_PACKAGE}"

- 

- rlJournalStart

-     rlPhaseStartSetup

-         rlLogInfo "PACKAGES=$PACKAGES"

-         rlLogInfo "REQUIRES=$REQUIRES"

-         rlLogInfo "COLLECTIONS=$COLLECTIONS"

-         rlLogInfo "PACKAGE=$PACKAGE"

-         rlLogInfo "NVR=$NVR"

-         rlLogInfo "LD=$LD"

-         rlLogInfo "GCC=$GCC"

-         rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"

- 

-         # We optionally need to skip checking for the presence of the metapackage

-         # because that would pull in all the dependent toolset subrpms.  We do not

-         # always want that, especially in CI.

-         _COLLECTIONS="$COLLECTIONS"

-         if ! test -z $SKIP_COLLECTION_METAPACKAGE_CHECK; then

-             for c in $SKIP_COLLECTION_METAPACKAGE_CHECK; do

-                  rlLogInfo "ignoring metapackage check for collection $c"

-                  export COLLECTIONS=$(shopt -s extglob && echo ${COLLECTIONS//$c/})

-             done

-         fi

- 

-         rlLogInfo "(without skipped) COLLECTIONS=$COLLECTIONS"

- 

-         rlAssertRpm --all

- 

-         export COLLECTIONS="$_COLLECTIONS"

- 

-         # temp dir

-         rlRun "TESTDIR=$PWD"

- 

-         rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"

-         rlRun "pushd $TmpDir"

-         rlRun "mkdir LOGS"

-         rlRun "LOGDIR=$TmpDir/LOGS"

- 

-         # fetch'n'build the source

-         rlRun "dnf download --disablerepo='*' --enablerepo=test-artifacts --source $NVR || cp /var/share/test-artifacts/$NVR.src.rpm ."

-         rlRun "dnf builddep -y $NVR.src.rpm"

-         rlRun "rpm -i $NVR.src.rpm"

-         export SPECDIR=`rpm --eval=%_specdir`

-         export BUILDDIR=`rpm --eval=%_builddir`

-         export CURRENT_BUILD=${BUILDDIR}/binutils-`rpmquery $PACKAGE --queryformat=%{VERSION}`

-         rlRun "rpmbuild -bc $SPECDIR/binutils.spec"

-         rlRun "ARCH=$(arch)"

- 

-         rlRun "cp $CURRENT_BUILD/build-$ARCH-redhat-linux/binutils/binutils.log $CURRENT_BUILD/build-$ARCH-redhat-linux/binutils/binutils.sum $LOGDIR/"

-         rlRun "cp $CURRENT_BUILD/build-$ARCH-redhat-linux/ld/ld.log $CURRENT_BUILD/build-$ARCH-redhat-linux/ld/ld.sum $LOGDIR/"

-         rlRun "cp $CURRENT_BUILD/build-$ARCH-redhat-linux/gas/testsuite/gas.log $CURRENT_BUILD/build-$ARCH-redhat-linux/gas/testsuite/gas.sum $LOGDIR/"

-     rlPhaseEnd

- 

-     if [ "$ARCH" = "x86_64" ]; then

-         rlPhaseStartTest Regression-bz1614908

-             rlLogInfo "Checking if bz#1614908 is reproducible"

-             rlRun "gold_test_binary=$(find $CURRENT_BUILD -iname gnu_property_test -type f -executable)" 0 "Looking for binary from gold testsuite"

-             rlAssertExists $gold_test_binary

-             rlAssertEquals 'Just one .note.gnu.property section' "$(readelf --wide --sections $gold_test_binary | grep -c -F .note.gnu.property)" 1

-             rlAssertEquals 'The .note.gnu.property section is aligned to 8' "$(readelf --wide --sections $gold_test_binary | awk '/\.note\.gnu\.property/ {print $NF}')" 8

-             rlAssertEquals 'First NOTE segment is aligned to 8' "$(readelf --wide --segments $gold_test_binary | awk '/NOTE/ {print $NF; exit}')" '0x8'

-         rlPhaseEnd

-     fi

- 

-     for TOOL in binutils ld gas; do

-         rlPhaseStartTest "$TOOL"

-             rlLogInfo "$TOOL Summary"

-             rlLogInfo "$(grep -A 50 '=== .* Summary ===' $LOGDIR/$TOOL.sum)"

- 

-             # Store list of failed test cases

-             rlRun "egrep '^FAIL: ' $LOGDIR/$TOOL.sum |& sort | tee $LOGDIR/$TOOL.failed" 0,1

- 

-             rlRun "grep '# of unexpected failures' $LOGDIR/$TOOL.sum" 0,1 "Checking number of unexpected failures"

- 

-             # Handle expected failures

-             if [ "$?" = "0" ]; then

-                 expected_fails_file="" # here we define expected failures if needed

-                 if [ "$expected_fails_file" = "" ]; then

-                     rlFail "No list of expected failures exists for this environment: release=$(cat /etc/redhat-release), arch=$ARCH, tool=$TOOL"

-                     rlFail "Unexpected failures found"

-                 else

-                     rlRun "diff $expected_fails_file $LOGDIR/$TOOL.failed" 0,1

-                     if [ "$?" != "0" ]; then

-                         rlFail "Unexpected failures found"

-                     else

-                         rlPass "No unexpected failures found"

-                     fi

-                 fi

-             else

-                 rlPass "No unexpected failures found"

-             fi

-         rlPhaseEnd

-     done

- 

-     rlPhaseStartCleanup

-         rlRun "tar czf $TmpDir/logs.tgz $LOGDIR/*.sum $LOGDIR/*.log"

-         rlRun "tar czf $TmpDir/buildroot.tgz $CURRENT_BUILD/"

-         rlFileSubmit logs.tar.gz

-         rlFileSubmit buildroot.tgz

-         rlRun "popd" # $TmpDir

-         rlRun "rm -r $TmpDir" 0 "Removing tmp directory"

-     rlPhaseEnd

- rlJournalPrintText

- rlJournalEnd

no initial comment

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/7ac29fd277e44cc2919a86fc2f1e405a

Pull-Request has been merged by nickc

4 months ago
Metadata
Changes Summary 206
+2 -2
file changed
gating.yaml
+25
file added
plans/build-gating.fmf
-5
file removed
plans/ci.fmf
-2
file removed
tests/README
-62
file removed
tests/Regression/241252/Makefile
-12
file removed
tests/Regression/241252/main.fmf
-62
file removed
tests/Regression/241252/runtest.sh
-62
file removed
tests/Regression/241252/x.i
-71
file removed
tests/Regression/241252/y.i
-82
file removed
tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/Makefile
-11
file removed
tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/PURPOSE
-20
file removed
tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/main.fmf
-21
file removed
tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/Makefile
-7
file removed
tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/bfdtest.c
-10
file removed
tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/libbfdtest.c
-1
file removed
tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/reproducer/libbfdtest.h
-49
file removed
tests/Regression/430856-libbfd.a-not-compiled-with-fPIC/runtest.sh
-85
file removed
tests/Regression/435078-output-of-strings-0-n-is-incorrect/Makefile
-2
file removed
tests/Regression/435078-output-of-strings-0-n-is-incorrect/PURPOSE
-14
file removed
tests/Regression/435078-output-of-strings-0-n-is-incorrect/main.fmf
-56
file removed
tests/Regression/435078-output-of-strings-0-n-is-incorrect/runtest.sh
-60
file removed
tests/Regression/480009-when-mistaking-argument-of-strings/Makefile
-27
file removed
tests/Regression/480009-when-mistaking-argument-of-strings/PURPOSE
-42
file removed
tests/Regression/480009-when-mistaking-argument-of-strings/main.fmf
-49
file removed
tests/Regression/480009-when-mistaking-argument-of-strings/runtest.sh
-59
file removed
tests/Regression/509124-holes-in-debuginfo/Makefile
-14
file removed
tests/Regression/509124-holes-in-debuginfo/PURPOSE
-15
file removed
tests/Regression/509124-holes-in-debuginfo/ascend.C
-25
file removed
tests/Regression/509124-holes-in-debuginfo/main.fmf
-73
file removed
tests/Regression/509124-holes-in-debuginfo/runtest.sh
-14
file removed
tests/Regression/509124-holes-in-debuginfo/test.c
-59
file removed
tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/Makefile
-0
file removed
tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/PURPOSE
-19
file removed
tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/bar.c
-7
file removed
tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/foo.c
-19
file removed
tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/main.fmf
-57
file removed
tests/Regression/531269-ld-fails-to-merge-different-visibility-for-the-same-symbol/runtest.sh
-63
file removed
tests/Regression/RELRO-protection-effective/Makefile
-34
file removed
tests/Regression/RELRO-protection-effective/PURPOSE
-43
file removed
tests/Regression/RELRO-protection-effective/main.fmf
-65
file removed
tests/Regression/RELRO-protection-effective/runtest.sh
-63
file removed
tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/Makefile
-5
file removed
tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/PURPOSE
-16
file removed
tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/main.fmf
-39
file removed
tests/Regression/bz1080077-RFE-Please-configure-ld-bfd-to-allow-sysroot/runtest.sh
-65
file removed
tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/Makefile
-5
file removed
tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/PURPOSE
-3
file removed
tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/libfoo.c
-17
file removed
tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/main.fmf
-63
file removed
tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/runtest.sh
-9
file removed
tests/Regression/bz1117458-ld-from-devtoolset-copies-SONAME-to-DT-NEEDED/user.c
-65
file removed
tests/Regression/bz1172766-ppc64-segv-in-libbfd/Makefile
-5
file removed
tests/Regression/bz1172766-ppc64-segv-in-libbfd/PURPOSE
-20
file removed
tests/Regression/bz1172766-ppc64-segv-in-libbfd/main.fmf
-85
file removed
tests/Regression/bz1172766-ppc64-segv-in-libbfd/runtest.sh
-66
file removed
tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/Makefile
-5
file removed
tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/PURPOSE
-3
file removed
tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/ldtest.S
-17
file removed
tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/main.fmf
-79
file removed
tests/Regression/bz1226864-ld-crashes-on-ppc64-when-being-used-with-oformat/runtest.sh
-64
file removed
tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/Makefile
-5
file removed
tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/PURPOSE
-15
file removed
tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/main.fmf
-2
file removed
tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/reproducer.c
-74
file removed
tests/Regression/bz1243559-aarch64-binutils-relocation-truncated-to-fit/runtest.sh
-66
file removed
tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/Makefile
-8
file removed
tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/PURPOSE
-4
file removed
tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/a.cpp
-19
file removed
tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/main.fmf
-77
file removed
tests/Regression/bz1248929-ar-SEGFAULT-when-creating-static-library-with-lto/runtest.sh
-64
file removed
tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/Makefile
-5
file removed
tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/PURPOSE
-16
file removed
tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/main.fmf
-86
file removed
tests/Regression/bz1311352-objdump-S-disassembly-code-doesn-t-follow/runtest.sh
-63
file removed
tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/Makefile
-18
file removed
tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/PURPOSE
-29
file removed
tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/main.fmf
-64
file removed
tests/Regression/bz1366145-dwz-applied-to-a-dts-compiled-binary-complains/runtest.sh
-65
file removed
tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/Makefile
-5
file removed
tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/PURPOSE
-15
file removed
tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/main.fmf
-5
file removed
tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/pie.c
-61
file removed
tests/Regression/bz1406430-binutils-ld-silently-produces-broken-PIE-binaries/runtest.sh
-65
file removed
tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/Makefile
-5
file removed
tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/PURPOSE
-14
file removed
tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/main.fmf
-13
file removed
tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/repr.c
-69
file removed
tests/Regression/bz1433075-Rust-TLS-accesses-are-badly-initialized/runtest.sh
-64
file removed
tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/Makefile
-5
file removed
tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/PURPOSE
-4
file removed
tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/main.c
-16
file removed
tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/main.fmf
-81
file removed
tests/Regression/bz1439350-LLNL-7-5-FEAT-RFE-create-an-option-to/runtest.sh
-65
file removed
tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/Makefile
-5
file removed
tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/PURPOSE
-4
file removed
tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/gprof.file.c
-15
file removed
tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/main.fmf
-77
file removed
tests/Regression/bz1465318-FJ7-4-Bug-REG-The-results-of-gprof-command/runtest.sh
-65
file removed
tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/Makefile
-5
file removed
tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/PURPOSE
-14
file removed
tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/main.fmf
-17
file removed
tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/reproducer.S
-76
file removed
tests/Regression/bz1573872-ld-should-allow-lea-foo-GOT-ecx/runtest.sh
-65
file removed
tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/Makefile
-5
file removed
tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/PURPOSE
-15
file removed
tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/main.fmf
-3
file removed
tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/reloc.s
-59
file removed
tests/Regression/bz1624776-binutils-ld-removes-some-R-X86-64-JUMP-SLOT/runtest.sh
-64
file removed
tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/Makefile
-5
file removed
tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/PURPOSE
-4
file removed
tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/foo.c
-8
file removed
tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/main.c
-15
file removed
tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/main.fmf
-94
file removed
tests/Regression/bz1693661-rhel8-gold-does-not-resolve-the-address-of-main/runtest.sh
-65
file removed
tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/Makefile
-5
file removed
tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/PURPOSE
-0
file removed
tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/kpatch-3_10_0-1062-1-15.ppc64le.ko
-0
file removed
tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/kpatch-3_10_0-1062-1-15.x86_64.ko
-16
file removed
tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/main.fmf
-110
file removed
tests/Regression/bz1785294-binutils-support-secondary-relocation-sections/runtest.sh
-64
file removed
tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/Makefile
-3
file removed
tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/PURPOSE
-14
file removed
tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/main.fmf
-55
file removed
tests/Regression/bz495196-man-page-for-c-filt-contains-unsupported-options/runtest.sh
-63
file removed
tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/Makefile
-3
file removed
tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/PURPOSE
-5
file removed
tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/hello-unexpected-reloc-type.c
-19
file removed
tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/main.fmf
-56
file removed
tests/Regression/bz533321-programs-linked-with-gcc-static-s-fail-with-unexpected-reloc-type-in-static-binary/runtest.sh
-64
file removed
tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/Makefile
-0
file removed
tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/PURPOSE
-19
file removed
tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/main.fmf
-54
file removed
tests/Regression/bz578576-ld-eats-all-available-memory-on-gdwarf-4-compiled-object/runtest.sh
-56
file removed
tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/Makefile
-42
file removed
tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/PURPOSE
-1
file removed
tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/foo.c
-48
file removed
tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/main.fmf
-9
file removed
tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/module-common.lds
-64
file removed
tests/Regression/bz587788-ld_-r-generates-R_X86_64_NONE/runtest.sh
-64
file removed
tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/Makefile
-3
file removed
tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/PURPOSE
-1
file removed
tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/bar.c
-15
file removed
tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/main.fmf
-56
file removed
tests/Regression/bz689829-ELFOSABI_LINUX-is-incorrectly-set-in-a-dynamic-ifunc-using-executable/runtest.sh
-66
file removed
tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/Makefile
-3
file removed
tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/PURPOSE
-14
file removed
tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/main.fmf
-61
file removed
tests/Regression/bz698005-eu-unstrip-do-not-seem-to-match/runtest.sh
-64
file removed
tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/Makefile
-8
file removed
tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/PURPOSE
-28
file removed
tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/main.fmf
-59
file removed
tests/Regression/bz748927-SystemTap-affected-by-stapsdt-base-1/runtest.sh
-64
file removed
tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/Makefile
-3
file removed
tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/PURPOSE
-15
file removed
tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/main.fmf
-55
file removed
tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/runtest.sh
-7
file removed
tests/Regression/bz755872-fpie-pie-does-not-appear-to-work-with-__thread-variables/w.c
-64
file removed
tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/Makefile
-5
file removed
tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/PURPOSE
-16
file removed
tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/main.fmf
-61
file removed
tests/Regression/bz850832-The-binutils-package-contains-the-windmc-1-manual/runtest.sh
-65
file removed
tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/Makefile
-17
file removed
tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/PURPOSE
-30
file removed
tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/main.fmf
-20
file removed
tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/reproducer6.c
-76
file removed
tests/Regression/bz872148-PIE-thread-produce-text-relocations-on-s390-x/runtest.sh
-66
file removed
tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/Makefile
-8
file removed
tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/PURPOSE
-20
file removed
tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/main.fmf
-69
file removed
tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/runtest.sh
-16
file removed
tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/t.c
-7
file removed
tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/u.c
-5
file removed
tests/Regression/bz895241-Bogus-warning-about-cross-object-references-to/v.c
-64
file removed
tests/Regression/bz916214-binutils-contains-empty-man-pages/Makefile
-5
file removed
tests/Regression/bz916214-binutils-contains-empty-man-pages/PURPOSE
-18
file removed
tests/Regression/bz916214-binutils-contains-empty-man-pages/main.fmf
-68
file removed
tests/Regression/bz916214-binutils-contains-empty-man-pages/runtest.sh
-65
file removed
tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/Makefile
-5
file removed
tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/PURPOSE
-8
file removed
tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/ld-fail.c
-18
file removed
tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/main.fmf
-57
file removed
tests/Regression/bz959422-TLS-variable-wrongly-relocated-on-debug-info/runtest.sh
-63
file removed
tests/Sanity/dts-probe-binaries/Makefile
-3
file removed
tests/Sanity/dts-probe-binaries/PURPOSE
-298
file removed
tests/Sanity/dts-probe-binaries/check-localplt.c
-6
file removed
tests/Sanity/dts-probe-binaries/m.c
-20
file removed
tests/Sanity/dts-probe-binaries/main.fmf
-7
file removed
tests/Sanity/dts-probe-binaries/popcnt.c
-388
file removed
tests/Sanity/dts-probe-binaries/runtest.sh
-31
file removed
tests/Sanity/dts-probe-binaries/virtual2.C
-64
file removed
tests/Sanity/rebuild-coreutils/Makefile
-3
file removed
tests/Sanity/rebuild-coreutils/PURPOSE
-14
file removed
tests/Sanity/rebuild-coreutils/main.fmf
-65
file removed
tests/Sanity/rebuild-coreutils/runtest.sh
-67
file removed
tests/Sanity/rebuild-emacs/Makefile
-21
file removed
tests/Sanity/rebuild-emacs/PURPOSE
-64
file removed
tests/Sanity/rebuild-emacs/main.fmf
-79
file removed
tests/Sanity/rebuild-emacs/runtest.sh
-65
file removed
tests/Sanity/rebuild-wget/Makefile
-3
file removed
tests/Sanity/rebuild-wget/PURPOSE
-16
file removed
tests/Sanity/rebuild-wget/main.fmf
-86
file removed
tests/Sanity/rebuild-wget/runtest.sh
-68
file removed
tests/Sanity/testsuite/Makefile
-3
file removed
tests/Sanity/testsuite/PURPOSE
-25
file removed
tests/Sanity/testsuite/main.fmf
-149
file removed
tests/Sanity/testsuite/runtest.sh