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 Mar 5, 2022
1 parent 3382b4d commit 78766f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gcc/config/aarch64/aarch64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11377,6 +11377,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 78766f5

Please sign in to comment.