public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Jaeger <aj@suse.de>
To: Michael Matz <matz@suse.de>
Cc: binutils@sourceware.org, Jan Hubicka <jh@suse.cz>,
		Daniel Jacobowitz <drow@false.org>
Subject: Re: [x86-64] Large model relocation
Date: Wed, 26 Apr 2006 10:29:00 -0000	[thread overview]
Message-ID: <hoaca8k7uv.fsf@reger.suse.de> (raw)
In-Reply-To: <ho8xr17epg.fsf@reger.suse.de> (Andreas Jaeger's message of "Thu, 	23 Mar 2006 09:22:35 +0100")

[-- Attachment #1: Type: text/plain, Size: 4484 bytes --]


I just :-( noticed that I forgot to commit the changelog entries, I added
them add the right place now.

The diff is appended,
Andreas

Index: bfd/ChangeLog
===================================================================
RCS file: /cvs/src/src/bfd/ChangeLog,v
retrieving revision 1.3479
diff -u -p -r1.3479 ChangeLog
--- bfd/ChangeLog	25 Apr 2006 17:46:15 -0000	1.3479
+++ bfd/ChangeLog	26 Apr 2006 09:23:06 -0000
@@ -311,6 +311,24 @@
 	bfd_get_compatible to set the new bfd architecture.  Rely on it
 	to detect incompatibilities.
 
+2006-03-23  Michael Matz  <matz@suse.de>
+
+	* reloc.c: Add BFD_RELOC_X86_64_GOT64, BFD_RELOC_X86_64_GOTPCREL64,
+	BFD_RELOC_X86_64_GOTPC64, BFD_RELOC_X86_64_GOTPLT64,
+	BFD_RELOC_X86_64_PLTOFF64.
+	* bfd-in2.h: Regenerated.
+	* libbfd.h: Regenerated.
+	* elf64-x86-64.c (x86_64_elf_howto_table): Correct comment.
+	Add howtos for above relocs.
+	(x86_64_reloc_map): Add mappings for new relocs.
+	(elf64_x86_64_check_relocs): R_X86_64_GOT64, R_X86_64_GOTPCREL64,
+	R_X86_64_GOTPLT64 need a got entry.  R_X86_64_GOTPLT64 also a PLT
+	entry.  R_X86_64_GOTPC64 needs a .got section.  R_X86_64_PLTOFF64
+	needs a PLT entry.
+	(elf64_x86_64_gc_sweep_hook): Reflect changes from
+	elf64_x86_64_check_relocs for the new relocs.
+	(elf64_x86_64_relocate_section): Handle new relocs.
+
 2006-03-22  Bob Wilson  <bob.wilson@acm.org>
 
 	* elf32-xtensa.c (xtensa_read_table_entries): Remove assertion that
Index: gas/ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/ChangeLog,v
retrieving revision 1.2869
diff -u -p -r1.2869 ChangeLog
--- gas/ChangeLog	25 Apr 2006 17:11:10 -0000	1.2869
+++ gas/ChangeLog	26 Apr 2006 09:23:06 -0000
@@ -228,6 +228,24 @@
 	* config/tc-m68k.c (m68k_cpus): Change cpu_cf5208 entries to use
 	mcfemac instead of mcfmac.
 
+2006-03-23  Michael Matz  <matz@suse.de>
+
+	* config/tc-i386.c (type_names): Correct placement of 'static'.
+	(reloc): Map some more relocs to their 64 bit counterpart when
+	size is 8.
+	(output_insn): Work around breakage if DEBUG386 is defined.
+	(output_disp): A BFD_RELOC_64 with GOT_symbol as operand also
+	needs to be mapped to BFD_RELOC_X86_64_GOTPC64 or
+	BFD_RELOC_X86_64_GOTPC32.  Also x86-64 handles pcrel addressing
+	different from i386.
+	(output_imm): Ditto.
+	(lex_got): Recognize @PLTOFF and @GOTPLT.  Make @GOT accept also
+	Imm64.
+	(md_convert_frag): Jumps can now be larger than 2GB away, error
+	out in that case.
+	(tc_gen_reloc): New relocs are passed through.  BFD_RELOC_64
+	and BFD_RELOC_64_PCREL are mapped to BFD_RELOC_X86_64_GOTPC64.
+
 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
 	    Daniel Jacobowitz  <dan@codesourcery.com>
 	    Phil Edwards  <phil@codesourcery.com>
Index: gas/testsuite/ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/testsuite/ChangeLog,v
retrieving revision 1.1005
diff -u -p -r1.1005 ChangeLog
--- gas/testsuite/ChangeLog	20 Apr 2006 12:39:51 -0000	1.1005
+++ gas/testsuite/ChangeLog	26 Apr 2006 09:23:06 -0000
@@ -35,6 +35,12 @@
 	* gas/sparc/vxworks-pic.s, gas/sparc/vxworks-pic.d: New test.
 	* gas/sparc/sparc.exp: Run it.  Remove sparc*-*-vxworks* XFAILs.
 
+2006-03-23  Michael Matz  <matz@suse.de>
+
+	* gas/i386/reloc64.s: Accept 64-bit forms.
+	* gas/i386/reloc64.d: Adjust.
+	* gas/i386/reloc64.l: Adjust.
+
 2006-03-23  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* gas/i386/rep.s: Pad with .p2align.
Index: include/ChangeLog
===================================================================
RCS file: /cvs/src/src/include/ChangeLog,v
retrieving revision 1.357
diff -u -p -r1.357 ChangeLog
--- include/ChangeLog	12 Apr 2006 18:41:45 -0000	1.357
+++ include/ChangeLog	26 Apr 2006 09:23:06 -0000
@@ -17,6 +17,11 @@
 	R_BFIN_GOTOFFLO): New relocs.
 	(EF_BFIN_PIC, EF_BFIN_FDPIC, EF_BFIN_PIC_FLAGS): New macros.
 
+2006-03-23  Michael Matz  <matz@suse.de>
+
+	* elf/x86-64.h: Add the new relocations with their official
+	numbers.
+
 2006-02-17  Shrirang Khisti  <shrirangk@kpitcummins.com>
             Anil Paranjape   <anilp1@kpitcummins.com>
             Shilin Shakti    <shilins@kpitcummins.com>

-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj/
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

      reply	other threads:[~2006-04-26  9:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-20 18:36 Michael Matz
2006-03-24  1:11 ` Andreas Jaeger
2006-04-26 10:29   ` Andreas Jaeger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=hoaca8k7uv.fsf@reger.suse.de \
    --to=aj@suse.de \
    --cc=binutils@sourceware.org \
    --cc=drow@false.org \
    --cc=jh@suse.cz \
    --cc=matz@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).