diff options
author | Nick Clifton <nickc@redhat.com> | 2021-04-06 13:27:50 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-04-06 13:27:50 +0100 |
commit | eac4eb8ecb2626ef7711d8f6bee9e870ae435604 (patch) | |
tree | fd02dab5fb608d6b4383540e03f36dcd295f9dd8 /sim/m32c | |
parent | da0835aebea71232f6b4fb4dea3ee18bdef0c139 (diff) | |
download | binutils-eac4eb8ecb2626ef7711d8f6bee9e870ae435604.zip binutils-eac4eb8ecb2626ef7711d8f6bee9e870ae435604.tar.gz binutils-eac4eb8ecb2626ef7711d8f6bee9e870ae435604.tar.bz2 |
Fix a problem assembling AArch64 sources when a relocation is generated against a symbol that has a defined value.
PR 27217
* config/tc-aarch64.c (my_get_expression): Rename to
aarch64_get_expression. Add a fifth argument to enable deferring
of expression resolution.
(parse_typed_reg): Update calls to my_get_expression.
(parse_vector_reg_list): Likewise.
(parse_immediate_expression): Likewise.
(parse_big_immediate): Likewise.
(parse_shift): Likewise.
(parse_shifter_operand_imm): Likewise.
(parse_operands): Likewise.
(parse_shifter_operand_reloc): Update calls to my_get_expression
and call aarch64_force_reloc to determine the value of the new
fifth argument.
(parse_address_main): Likewise.
(parse_half): Likewise.
(parse_adrp): Likewise.
(aarch64_force_reloc): New function. Contains code extracted from...
(aarch64_force_relocation): ... here.
* testsuite/gas/aarch64/pr27217.s: New test case.
* testsuite/gas/aarch64/pr27217.d: New test driver.
Diffstat (limited to 'sim/m32c')
0 files changed, 0 insertions, 0 deletions