This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: fix for fixup_segment / MD_PCREL_FROM_SECTION


> Hmm, alternatively, just modify the doco for MD_PCREL_FROM_SECTION to
> reflect reality.  Note also that your patch misses a number of other
> places where MD_PCREL_FROM_SECTION is used.

I've seen these too, but I wasn't sure that was life code, or if it actually
did have the same problem/feature/whatever.

Anyways, here is a doc patch.

Wed Aug 29 12:05:13 2001  J"orn Rennecke <amylaar@redhat.com>

	* doc/internals.texi (MD_PCREL_FROM_SECTION): Change
	docuemntation to reflect reality.

Index: internals.texi
===================================================================
RCS file: /cvs/cvsfiles/devo/gas/doc/internals.texi,v
retrieving revision 1.42
diff -p -r1.42 internals.texi
*** internals.texi	2001/07/14 15:56:19	1.42
--- internals.texi	2001/08/29 11:04:35
*************** You may define this macro to indicate wh
*** 1274,1285 ****
  symbol should be adjusted to be against the section symbol.  It should return a
  non-zero value if the adjustment is acceptable.
  
! @item MD_PCREL_FROM_SECTION
  @cindex MD_PCREL_FROM_SECTION
! If you define this macro, it should return the offset between the address of a
! PC relative fixup and the position from which the PC relative adjustment should
! be made.  On many processors, the base of a PC relative instruction is the next
! instruction, so this macro would return the length of an instruction.
  
  @item md_pcrel_from
  @cindex md_pcrel_from
--- 1274,1287 ----
  symbol should be adjusted to be against the section symbol.  It should return a
  non-zero value if the adjustment is acceptable.
  
! @item MD_PCREL_FROM_SECTION (@var{fixp}, @var{section})
  @cindex MD_PCREL_FROM_SECTION
! If you define this macro, it should return the position from which the PC
! relative adjustment for a PC relative fixup should be made.  On many
! processors, the base of a PC relative instruction is the next instruction,
! so this macro would return the length of an instruction, plus the address of
! the PC relative fixup.  The latter can be calculated as
! @var{fixp}->fx_where + @var{fixp}->fx_frag->fr_address .
  
  @item md_pcrel_from
  @cindex md_pcrel_from


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]