Gold testsuite fails with gcc-5
Alan Modra
amodra@gmail.com
Fri Feb 6 14:18:00 GMT 2015
script_test_1 and script_test_11 both fail for me when using gcc-5.
>From script_test_1, the following assert
extern char a, b, c, d, e, f, g;
int sym = 3;
assert(reinterpret_cast<int*>(&e) == &sym);
is compiled to an unconditional assertion failure, since (apparently)
sym can't alias e.
script_test_11 has a similar problem
unsigned int foo __attribute__((section(".foo")));
extern char __foo_start;
if (&__foo_start != (char *)&foo)
with the above condition being evaluated as true at compile time.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list