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: TC_RELOC_GLOBAL_OFFSET_TABLE usage?


>>>>> Alan Modra writes:

 > On 10 Jan 2001, Andreas Jaeger wrote:
>> Do we really need TC_RELOC_GLOBAL_OFFSET_TABLE?  Where is it needed?
>> Or can it be deleted?

 > As far as I'm concerned, you can get rid of it.

Ok, I've committing now the appended patch,
Andreas

2001-01-11  Andreas Jaeger  <aj@suse.de>

	* config/tc-i386.h (TC_RELOC_GLOBAL_OFFSET_TABLE): Removed, it's
	not used anywhere.

Index: gas/config/tc-i386.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.h,v
retrieving revision 1.21
diff -u -r1.21 tc-i386.h
--- tc-i386.h	2001/01/03 15:36:26	1.21
+++ tc-i386.h	2001/01/11 11:36:43
@@ -1,5 +1,5 @@
 /* tc-i386.h -- Header file for tc-i386.c
-   Copyright (C) 1989, 92, 93, 94, 95, 96, 97, 98, 99, 2000
+   Copyright (C) 1989, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001
    Free Software Foundation.
 
    This file is part of GAS, the GNU Assembler.
@@ -53,15 +53,6 @@
 #define TC_FIX_ADJUSTABLE(fixP) \
   (! symbol_used_in_reloc_p ((fixP)->fx_addsy) && tc_fix_adjustable (fixP))
 #endif
-
-/* This is the relocation type for direct references to GLOBAL_OFFSET_TABLE.
- * It comes up in complicated expressions such as
- * _GLOBAL_OFFSET_TABLE_+[.-.L284], which cannot be expressed normally with
- * the regular expressions.  The fixup specified here when used at runtime
- * implies that we should add the address of the GOT to the specified location,
- * and as a result we have simplified the expression into something we can use.
- */
-#define TC_RELOC_GLOBAL_OFFSET_TABLE BFD_RELOC_386_GOTPC
 
 /* This expression evaluates to false if the relocation is for a local object
    for which we still want to do the relocation at runtime.  True if we

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

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