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 26, 2022
1 parent 586bbac commit 52bdbb2
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 @@ -11921,6 +11921,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 52bdbb2

Please sign in to comment.