binutils-gdb/ld/testsuite/ld-undefined
Jan Beulich 87fa7d568d bfd: don't silently wrap or truncate PE image section RVAs
In PE images section addresses get expressed as addresses relative to
the image base. Therefore the VA of a section must be no less than the
image base, and after subtraction of the image base the resulting value
should fit in 32 bits. (The issue is particularly obvious to notice when
sections, perhaps because of ELF assumptions, get placed at VA 0 by
default. Debugging info sections as well as .comment, when input files
are ELF, are a good example. All such sections need proper mentioning in
the linker script to avoid this warning.)

There are a number of test cases which previously produced bogus images,
yet still declared the test a success. Like done for other tests
already, force a zero image base for these. This then also allows (and
requires) dropping again xfail-s which 39a7b38fac ("Fix linker tests
to work with 16-bit targets") had added to ld-scripts/default-script*.d
(originally as skip-s). This also depends on similar adjustments to
testsuite/ld-scripts/map-address.* made by an earlier patch.

For ld-scripts/print-memory-usage.* I suppose xcoff could be dropped
from the exclusion list by suppressing garbage collection, just like
already done in e.g. (as seen in the diff here) ld-scripts/data.*, but I
didn't want to make unrelated adjustments.
2021-03-09 08:52:32 +01:00
..
dummy.s
entry-1.d
entry-2.d
entry-3.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
entry-4.d Add generic tests for linker support of the -shared or -pie options to tests which use them. 2020-04-30 13:49:30 +01:00
entry-5.d
entry-6.d
entry-7.d
entry.exp Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
entry.s
fundef.s Test undefined symbols in shared libraries 2017-08-24 16:43:39 +09:30
require-defined-1.d ld: Add '--require-defined' command line option. 2015-08-04 10:00:05 +01:00
require-defined-2.d ld: Add '--require-defined' command line option. 2015-08-04 10:00:05 +01:00
require-defined-3.d ld: Add '--require-defined' command line option. 2015-08-04 10:00:05 +01:00
require-defined-4.d ld: Add '--require-defined' command line option. 2015-08-04 10:00:05 +01:00
require-defined-5.d ld: Add '--require-defined' command line option. 2015-08-04 10:00:05 +01:00
require-defined.exp Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
require-defined.s ld: Add '--require-defined' command line option. 2015-08-04 10:00:05 +01:00
undefined.c
undefined.exp ld testsuite: change unresolved to unsupported/fail 2021-02-14 22:34:27 +10:30
weak-fundef.s PR26882, --enable-textrel-check=warning test failures on powerpc 2020-11-17 20:59:53 +10:30
weak-undef.exp bfd: don't silently wrap or truncate PE image section RVAs 2021-03-09 08:52:32 +01:00
weak-undef.s
weak-undef.t Add undefined weak function tests 2016-08-12 14:34:49 +09:30