Arm64: follow-on to PR gas/27217 fix
authorJan Beulich <jbeulich@suse.com>
Wed, 18 May 2022 15:55:55 +0000 (17:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 May 2022 15:55:55 +0000 (17:55 +0200)
commit04dfe7aa52171d110db813bce67c0eea5f4b18cd
treef281664b81f949a0212ba4024471ad522913f5f3
parent2a89fa9613ccc2464e9d196f2e03488c13bd7241
Arm64: follow-on to PR gas/27217 fix

PR gas/27217

Prior to trying to address PR gas/28888 I noticed anomalies in how
certain insns would / wouldn't be affected in similar ways.

Commit eac4eb8ecb26 ("Fix a problem assembling AArch64 sources when a
relocation is generated against a symbol that has a defined value") had
two copy-and-paste mistakes, passing the wrong type to
aarch64_force_reloc().

It further failed to add placeholder relocation types to that function's
block of case labels leading to a return of 1. While not of interest for
aarch64_force_relocation() (these placeholders are resolved right in
parse_operands()), calls to aarch64_force_reloc() happen before that
resolution would take place.
gas/config/tc-aarch64.c