mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
* config/tc-sh.c (sh_coff_frob_file): Don't consider the address
of the section when looking for the R_SH_USES fixup, because the frag addresses have not yet been adjusted. PR 9072.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
Thu Feb 22 16:39:43 1996 Ian Lance Taylor <ian@cygnus.com>
|
Thu Feb 22 16:39:43 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* config/tc-sh.c (sh_coff_frob_file): Don't consider the address
|
||||||
|
of the section when looking for the R_SH_USES fixup, because the
|
||||||
|
frag addresses have not yet been adjusted.
|
||||||
|
|
||||||
* gdbinit.in: Set a breakpoint on as_warn_where.
|
* gdbinit.in: Set a breakpoint on as_warn_where.
|
||||||
|
|
||||||
* config/tc-mips.c (macro): Add missing arguments to macro_build
|
* config/tc-mips.c (macro): Add missing arguments to macro_build
|
||||||
|
@ -1139,7 +1139,6 @@ sh_coff_frob_file ()
|
|||||||
{
|
{
|
||||||
symbolS *sym;
|
symbolS *sym;
|
||||||
bfd_vma val;
|
bfd_vma val;
|
||||||
bfd_vma paddr;
|
|
||||||
fixS *fscan;
|
fixS *fscan;
|
||||||
int iscan;
|
int iscan;
|
||||||
int count;
|
int count;
|
||||||
@ -1164,11 +1163,10 @@ sh_coff_frob_file ()
|
|||||||
/* Look through the fixups again, this time looking for one
|
/* Look through the fixups again, this time looking for one
|
||||||
at the same location as sym. */
|
at the same location as sym. */
|
||||||
val = S_GET_VALUE (sym);
|
val = S_GET_VALUE (sym);
|
||||||
paddr = segment_info[iseg].scnhdr.s_paddr;
|
|
||||||
for (fscan = segment_info[iseg].fix_root;
|
for (fscan = segment_info[iseg].fix_root;
|
||||||
fscan != NULL;
|
fscan != NULL;
|
||||||
fscan = fscan->fx_next)
|
fscan = fscan->fx_next)
|
||||||
if (val == paddr + fscan->fx_frag->fr_address + fscan->fx_where)
|
if (val == fscan->fx_frag->fr_address + fscan->fx_where)
|
||||||
break;
|
break;
|
||||||
if (fscan == NULL)
|
if (fscan == NULL)
|
||||||
{
|
{
|
||||||
@ -1202,7 +1200,6 @@ sh_coff_frob_file ()
|
|||||||
count = 0;
|
count = 0;
|
||||||
for (iscan = SEG_E0; iscan < SEG_UNKNOWN; iscan++)
|
for (iscan = SEG_E0; iscan < SEG_UNKNOWN; iscan++)
|
||||||
{
|
{
|
||||||
paddr = segment_info[iscan].scnhdr.s_paddr;
|
|
||||||
for (fscan = segment_info[iscan].fix_root;
|
for (fscan = segment_info[iscan].fix_root;
|
||||||
fscan != NULL;
|
fscan != NULL;
|
||||||
fscan = fscan->fx_next)
|
fscan = fscan->fx_next)
|
||||||
|
Reference in New Issue
Block a user