IBM zSystems: Issue error for *DBL relocs on misaligned symbols
authorAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 19 Oct 2022 07:03:17 +0000 (09:03 +0200)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 19 Oct 2022 07:03:17 +0000 (09:03 +0200)
commit906f69cf65daa8fee1c1c94a5c2fb221ba02b40d
treeb4b68625589003e42dff226699c2387520fa8b7a
parent9454c9ce88b25646d279feed329c9cdba69b4905
IBM zSystems: Issue error for *DBL relocs on misaligned symbols

Relocs like PC32DBL require a right shift of the symbol value.  There
is no situation where dropping symbol value bits with the right shift
is a good thing.  Hence we now issue an error to detect such problems.
bfd/elf64-s390.c
ld/testsuite/ld-s390/reloccheck-1.d [new file with mode: 0644]
ld/testsuite/ld-s390/reloccheck-1.s [new file with mode: 0644]