mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-26 13:30:30 +00: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:
parent
e1d98a0a65
commit
0f8e50bb76
@ -1,5 +1,16 @@
|
||||
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.
|
||||
(md_pcrel_from_section): New function.
|
||||
|
@ -814,14 +814,12 @@ md_estimate_size_before_relax (fragp, seg)
|
||||
}
|
||||
|
||||
long
|
||||
md_pcrel_from_section (fixp, sec)
|
||||
md_pcrel_from (fixp)
|
||||
fixS *fixp;
|
||||
segT sec;
|
||||
{
|
||||
/* If the symbol is undefined, or in a section other than our own,
|
||||
then let the linker figure it out. */
|
||||
if ((fixp->fx_addsy != (symbolS *) NULL && ! S_IS_DEFINED (fixp->fx_addsy))
|
||||
|| (fixp->fx_addsy && S_GET_SEGMENT (fixp->fx_addsy) != sec))
|
||||
if (fixp->fx_addsy != (symbolS *) NULL && ! S_IS_DEFINED (fixp->fx_addsy))
|
||||
{
|
||||
/* The symbol is undefined. Let the linker figure it out. */
|
||||
return 0;
|
||||
|
@ -47,5 +47,4 @@
|
||||
|
||||
#define md_number_to_chars number_to_chars_littleendian
|
||||
|
||||
/* call md_pcrel_from_section, not md_pcrel_from */
|
||||
#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section(FIXP, SEC)
|
||||
#define tc_fix_adjustable(FIX) (!(FIX)->fx_pcrel)
|
||||
|
Loading…
Reference in New Issue
Block a user