about summary refs log tree commit diff
path: root/elf/Makefile
Commit message (Collapse)AuthorAgeFilesLines
...
* Split up rules for tests that compare output with baselines.Joseph Myers2014-02-141-42/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch splits makefile rules that generate a file then run cmp to check the contents of that file into separate rules to generate and compare the file. This simplifies making those tests generate PASS / FAIL results, by removing the need to insert && between commands in the test so that a $(evaluate-test) call is reached. It also avoids the oddity of the .out file being an intermediate file rather than the final result generated, as noted for some of these tests in <https://sourceware.org/ml/libc-alpha/2012-10/msg00894.html>. In many cases, the rule to run the program was no longer needed because the default rules for running test programs on the host to generate a .out file sufficed. (I'm not asserting the commands run after this patch are *exactly* the same as before, simply that the rules did nothing special that appeared deliberate or relevant to anything about what the tests were testing. In cases where the rules redirected stderr as well as stdout, I left the existing rule's redirection in place to avoid changing what gets compared with the expected results.) It's clear there is a lot in common between the various -cmp.out rules and it might be possible in future to refactor them into more generic support for the case of comparing test output against a baseline. (Some baselines are *.exp, some *.expect, some directly embedded in the makefiles, and nptl/tst-cleanupx0.expect appears unused.) Tested x86_64. * elf/Makefile ($(objpfx)order.out): Remove rule. [$(run-built-tests) = yes] (tests): Depend on $(objpfx)order-cmp.out. ($(objpfx)order-cmp.out): New rule. [$(run-built-tests) = yes] (tests): Depend on $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out, $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out, $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and $(objpfx)tst-array5-static-cmp.out. ($(objpfx)tst-array1.out): Remove rule. ($(objpfx)tst-array1-cmp.out): New rule. ($(objpfx)tst-array1-static.out): Remove rule. ($(objpfx)tst-array1-static-cmp.out): New rule. ($(objpfx)tst-array2.out): Remove rule. ($(objpfx)tst-array2-cmp.out): New rule. ($(objpfx)tst-array3.out): Remove rule. ($(objpfx)tst-array3-cmp.out): New rule. ($(objpfx)tst-array4.out): Remove rule. ($(objpfx)tst-array4-cmp.out): New rule. ($(objpfx)tst-array5.out): Remove rule. ($(objpfx)tst-array5-cmp.out): New rule. ($(objpfx)tst-array5-static.out): Remove rule. ($(objpfx)tst-array5-static-cmp.out): New rule. [$(run-built-tests) = yes] (tests): Depend on $(objpfx)order2-cmp.out. ($(objpfx)order2.out): Remove rule. ($(objpfx)order2-cmp.out): New rule. ($(objpfx)tst-initorder.out): Remove rule. [$(run-built-tests) = yes] (tests): Depend on $(objpfx)tst-initorder-cmp.out. ($(objpfx)tst-initorder-cmp.out): New rule. ($(objpfx)tst-initorder2.out): Remove rule. [$(run-built-tests) = yes] (tests): Depend on $(objpfx)tst-initorder2-cmp.out. ($(objpfx)tst-initorder2-cmp.out): New rule. [$(run-built-tests) = yes] (tests): Depend on $(objpfx)tst-unused-dep-cmp.out. ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp. ($(objpfx)tst-unused-dep-cmp.out): New rule. * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend on $(objpfx)tst-setvbuf1-cmp.out. ($(objpfx)tst-setvbuf1.out): Do not run cmp. ($(objpfx)tst-setvbuf1-cmp.out): New rule. * string/Makefile [$(run-built-tests) = yes] (tests): Depend $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out. ($(objpfx)tst-svc.out): Remove rule. ($(objpfx)tst-svc-cmp.out): New rule. nptl: * Makefile ($(objpfx)tst-cleanup0.out): Do not run cmp. [$(run-built-tests) = yes] (tests): Depend on $(objpfx)tst-cleanup0-cmp.out. ($(objpfx)tst-cleanup0-cmp.out): New rule.
* Make ABI tests generate .out files.Joseph Myers2014-02-121-1/+1
| | | | | | | | | | | | | | | | | | | If you rerun "make check" in a tree where some tests have already been run, it will rerun ABI tests because those do not create an output file. This patch changes those tests to create .out files so they only get rerun if the dependencies (on the ABI baselines and the generated .symlist files) indicate they should be rerun. Tested x86_64. * Makerules (check-abi-%): Change target to $(objpfx)check-abi-%.out. (check-abi target): Update dependencies. (check-abi-pattern variable): Redirect output of diff to $@. (check-abi variable): Likewise. * elf/Makefile (check-abi): Update dependencies.
* Update copyright notices with scripts/update-copyrightsAllan McRae2014-01-011-1/+1
|
* Adjust AT_EXECFN when using explicit loader invocation.Paul Pluzhnikov2013-11-181-1/+2
| | | | | | | | 2013-11-18 Paul Pluzhnikov <ppluzhnikov@google.com> * elf/Makefile (tst-auxv): New test. * elf/tst-auxv.c: New * elf/rtld.c (dl_main): Adjust AT_EXECFN
* BZ #15754: Fix test case for ARM.Carlos O'Donell2013-09-231-0/+3
| | | | | | | Statically built binaries use __pointer_chk_guard_local, while dynamically built binaries use __pointer_chk_guard. Provide the right definition depending on the test case we are building.
* BZ #15754: CVE-2013-4788Carlos O'Donell2013-09-231-2/+7
| | | | | | | | | | | | The pointer guard used for pointer mangling was not initialized for static applications resulting in the security feature being disabled. The pointer guard is now correctly initialized to a random value for static applications. Existing static applications need to be recompiled to take advantage of the fix. The test tst-ptrguard1-static and tst-ptrguard1 add regression coverage to ensure the pointer guards are sufficiently random and initialized to a default value.
* Remove --disable-versioning.Joseph Myers2013-09-041-1/+1
|
* Don't let ld.so that failed its sanity check land in place.Roland McGrath2013-06-131-2/+5
|
* Avoid crashing in LD_DEBUG when program name is unavailableSiddhesh Poyarekar2013-05-291-2/+4
| | | | | | | | | Resolves: #15465 The program name may be unavailable if the user application tampers with argc and argv[]. Some parts of the dynamic linker caters for this while others don't, so this patch consolidates the check and fallback into a single macro and updates all users.
* Move x86_64-specific audit tests to sysdeps/x86_64/.Joseph Myers2013-04-251-47/+0
|
* Add support for rtld directory different from slib directoryAndreas Schwab2013-03-191-5/+6
|
* Build elf/tst-array2 and elf/tst-array5 with --no-as-neededAdam Conrad2013-01-221-0/+3
| | | | | * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed). (LDFLAGS-tst-array5): Likewise.
* Add --enable-hardcoded-path-in-tests configure optionH.J. Lu2013-01-111-20/+12
|
* Update copyright notices with scripts/update-copyrights.Joseph Myers2013-01-021-1/+1
|
* use $(READELF) rather than readelfMike Frysinger2012-11-231-1/+1
| | | | | | | | We setup $(READELF) and use it everywhere, so fix the two places that were using readelf directly. Reported-by: Denis M. <god@politeia.in> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Skip audit if l_reloc_result is NULLH.J. Lu2012-11-141-1/+5
|
* Support --with-pkgversion and --with-bugurl.Joseph Myers2012-11-091-2/+7
|
* Support cross-testing for elf/tst-array*.Joseph Myers2012-10-301-24/+16
|
* [BZ#14767] Remove tests for have-initfini-array in elf/MakefileAndreas Jaeger2012-10-301-12/+5
| | | | | | | | * elf/Makefile (tests): Remove conditional for have-initfini-array since this is now always required and the variable does not exist anymore. (tests-static): Likewise. (modules-names): Likewise.
* Support cross-testing.Joseph Myers2012-10-241-2/+7
|
* Define and use $(run-built-tests).Joseph Myers2012-10-241-3/+3
|
* Add and use $(host-built-program-cmd).Jim Blandy2012-10-231-1/+1
|
* Check the main application only if SHARED is definedH.J. Lu2012-10-201-2/+9
|
* Move _dl_important_hwcaps to dl-hwcaps.cH.J. Lu2012-10-051-1/+1
|
* Clean up conditionalize of ld.so.cache support.Roland McGrath2012-10-031-3/+6
|
* Set "fail on error" mode directly in testsuite shell scriptsDmitry V. Levin2012-09-251-1/+1
|
* rtld: limit self loading check to normal mode onlyDmitry V. Levin2012-09-191-1/+4
| | | | | | | | | Commit glibc-2.14~10 disallowed rtld self loading to avoid a segfault that used to happen when rtld was loading itself in normal mode. Unfortunately, that commit disallowed all modes of self loading, including those that used to work before. This change limits the check for self loading to normal mode only, so that instruments like ldd could handle rtld properly.
* Move localplt baselines to sysdeps directories.Joseph Myers2012-07-201-12/+5
|
* Avoid use of libgcc_s and libgcc_eh when building glibc.Joseph Myers2012-07-031-1/+5
|
* Add --enable-systemtap configuration to define static probe points.Roland McGrath2012-05-251-1/+2
|
* Hurd: Build pldd also if use-ldconfig != yes || build-shared != yesThomas Schwinge2012-05-101-3/+2
|
* Fix make clean for recent elf/Makefile changes.Roland McGrath2012-05-031-3/+3
|
* Fix test-suite failues with -Wl,--as-neededAllan McRae2012-05-021-1/+20
| | | | Signed-off-by: Allan McRae <allan@archlinux.org>
* Redirect check-localplt output to check-localplt.out.Roland McGrath2012-05-011-1/+2
|
* Do check-localplt test using readelf rather than a build-time C program.Roland McGrath2012-05-011-14/+21
|
* Do check-execstack test using readelf rather than a build-time C program.Roland McGrath2012-05-011-15/+26
|
* Do check-textrel test using readelf rather than a build-time C program.Roland McGrath2012-05-011-11/+16
|
* Don't run tests when cross-compilingAndreas Schwab2012-04-281-0/+4
|
* Add flexibility to localplt-*.data files, using an awk script rather than ↵Roland McGrath2012-04-241-2/+1
| | | | diff to check the results.
* New ld.so argument --inhibit-ldcache to disable ld.so.cache lookupSiddhesh Poyarekar2012-04-111-1/+2
| | | | | | | | | | | It may sometimes be desirable to make the dynamic linker only pick up libraries from the library path and rpath and not look at the ld.so.cache that ldconfig generates. An example of such a use case is the glibc testsuite where the dynamic linker must not be influenced by any external paths or caches. This change adds a new option --inhibit-ldcache that when used, tells the dynamic linker to not use ld.so.cache even if it is available.
* Remove distribute variable from MakefilesUlrich Drepper2012-03-071-85/+0
|
* Always set l_used for vDSO.Marek Polacek2012-02-291-0/+11
|
* Replace FSF snail mail address with URLs.Paul Eggert2012-02-091-3/+2
|
* Sort objects before relocationsUlrich Drepper2012-01-271-3/+12
|
* Static linking is always neededUlrich Drepper2012-01-081-3/+1
|
* Remove non-ELF supportUlrich Drepper2012-01-071-2/+2
|
* Fix pattern on $(ldd-rewrite-script) substitutionAndreas Schwab2011-09-131-1/+1
|
* Prepend $(..) to $(ldd-rewrite-script) if non-absoluteAndreas Schwab2011-09-111-1/+2
|
* Fix scope handling during dl_closeAndreas Schwab2011-08-241-1/+9
|
* Correct cycle detection during dependency sortingAndreas Schwab2011-08-221-5/+24
|