Bug gas/213

* config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
	labels.  Fix warning.
This commit is contained in:
Dave Anglin 2004-06-11 17:36:32 +00:00
parent e9edc8084b
commit 2337eb33bb
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2004-06-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Bug gas/213
* config/tc-hppa.c (hppa_fix_adjustable): Allow reduction of fake
labels. Fix warning.
2004-05-28 DJ Delorie <dj@redhat.com>
* config/tc-mn10300.h (tc_fix_adjustable): Define.

View File

@ -8402,14 +8402,21 @@ int
hppa_fix_adjustable (fixp)
fixS *fixp;
{
#ifdef OBJ_ELF
reloc_type code;
#endif
struct hppa_fix_struct *hppa_fix;
hppa_fix = (struct hppa_fix_struct *) fixp->tc_fix_data;
#ifdef OBJ_SOM
/* Reject reductions of symbols in 32bit relocs. */
if (fixp->fx_r_type == R_HPPA && hppa_fix->fx_r_format == 32)
/* Reject reductions of symbols in 32bit relocs unless they
are fake labels. */
if (fixp->fx_r_type == R_HPPA
&& hppa_fix->fx_r_format == 32
&& strncmp (S_GET_NAME (fixp->fx_addsy),
FAKE_LABEL_NAME,
strlen (FAKE_LABEL_NAME)))
return 0;
#endif