From 25989392697bc776bf6176753017162a52617955 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Sun, 7 Nov 1993 20:07:51 +0000 Subject: [PATCH] * config/tc-hppa.h (SEG_DIFF_ALLOWED): Delete definition. * config/tc-hppa.c (fix_new_hppa): If the subtract symbol for a fixup is $global$ change it to NULL as $global$ is really only needed long enough to determine the base type of relocation to use. --- gas/config/tc-hppa.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c index 1c31bc1da36..de06b4e54d7 100644 --- a/gas/config/tc-hppa.c +++ b/gas/config/tc-hppa.c @@ -1327,6 +1327,12 @@ fix_new_hppa (frag, where, size, add_symbol, offset, exp, pcrel, obj_attach_unwind_info (add_symbol->bsym, unwind_desc); #endif } + + /* foo-$global$ is used to access non-automatic storage. $global$ + is really just a marker and has served its purpose, so eliminate + it now so as not to confuse write.c. */ + if (!strcmp (S_GET_NAME (new_fix->fx_subsy), "$global$")) + new_fix->fx_subsy = NULL; } /* Parse a .byte, .word, .long expression for the HPPA. Called by -- 2.47.3