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 #54.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
  • Loading branch information
iains committed Dec 25, 2021
1 parent 079e7f5 commit 47752a4
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 @@ -11234,6 +11234,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 47752a4

Please sign in to comment.