Skip to content

Commit

Permalink
aarch64, Darwin: Account for UNSPEC_SALT_ADDR in symbol output.
Browse files Browse the repository at this point in the history
We were omitting the postfix relocation indicator because the
code was falling back to the default output when a symbol was
wrapped in an unspec SALT_ADDR.

fixes issue gcc-mirror#54.

Signed-off-by: Iain Sandoe <[email protected]>
  • Loading branch information
iains authored and ilg-ul committed Dec 1, 2021
1 parent 12ea2f1 commit d942c5e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gcc/config/aarch64/aarch64.c
Original file line number Diff line number Diff line change
Expand Up @@ -10908,6 +10908,13 @@ output_macho_postfix_expr (FILE *file, rtx x, const char *postfix)
output_addr_const (file, XEXP (x, 0));
break;

case UNSPEC:
if (XINT (x, 1) == UNSPEC_SALT_ADDR)
{
output_macho_postfix_expr (file, XVECEXP (x, 0, 0), postfix);
break;
}
/* FALLTHROUGH */
default:
if (targetm.asm_out.output_addr_const_extra (file, x))
break;
Expand Down

0 comments on commit d942c5e

Please sign in to comment.