mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
* write.c (fixup_segment): Don't add symbol value to addend if
TC_V850 and OBJ_ELF. * config/tc-v850.h (tc_fix_adjustable): Don't adjust any pc-relative fixups. Fixing more failures in the g++ testsuite.
This commit is contained in:
@ -1,5 +1,16 @@
|
|||||||
start-sanitize-v850
|
start-sanitize-v850
|
||||||
Wed Oct 16 00:19:00 1996 Jeffrey A Law (law@cygnus.com)
|
Wed Oct 16 11:28:31 1996 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
|
* write.c (fixup_segment): Don't add symbol value to addend if
|
||||||
|
TC_V850 and OBJ_ELF.
|
||||||
|
* config/tc-v850.h (tc_fix_adjustable): Don't adjust any
|
||||||
|
pc-relative fixups.
|
||||||
|
|
||||||
|
* config/tc-v850.c (md_pcrel_from): Undo yesterday's changes.
|
||||||
|
(md_pcrel_from_section): Likewise.
|
||||||
|
* config/tc-v850.h (MD_PCREL_FROM_SECTION): Likewise.
|
||||||
|
|
||||||
|
Tue Oct 15 23:19:00 1996 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
* config/tc-v850.c (md_pcrel_from): Delete unused function.
|
* config/tc-v850.c (md_pcrel_from): Delete unused function.
|
||||||
(md_pcrel_from_section): New function.
|
(md_pcrel_from_section): New function.
|
||||||
|
@ -814,14 +814,12 @@ md_estimate_size_before_relax (fragp, seg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
long
|
long
|
||||||
md_pcrel_from_section (fixp, sec)
|
md_pcrel_from (fixp)
|
||||||
fixS *fixp;
|
fixS *fixp;
|
||||||
segT sec;
|
|
||||||
{
|
{
|
||||||
/* If the symbol is undefined, or in a section other than our own,
|
/* If the symbol is undefined, or in a section other than our own,
|
||||||
then let the linker figure it out. */
|
then let the linker figure it out. */
|
||||||
if ((fixp->fx_addsy != (symbolS *) NULL && ! S_IS_DEFINED (fixp->fx_addsy))
|
if (fixp->fx_addsy != (symbolS *) NULL && ! S_IS_DEFINED (fixp->fx_addsy))
|
||||||
|| (fixp->fx_addsy && S_GET_SEGMENT (fixp->fx_addsy) != sec))
|
|
||||||
{
|
{
|
||||||
/* The symbol is undefined. Let the linker figure it out. */
|
/* The symbol is undefined. Let the linker figure it out. */
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -47,5 +47,4 @@
|
|||||||
|
|
||||||
#define md_number_to_chars number_to_chars_littleendian
|
#define md_number_to_chars number_to_chars_littleendian
|
||||||
|
|
||||||
/* call md_pcrel_from_section, not md_pcrel_from */
|
#define tc_fix_adjustable(FIX) (!(FIX)->fx_pcrel)
|
||||||
#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section(FIXP, SEC)
|
|
||||||
|
Reference in New Issue
Block a user