public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Binutils Patches
@ 2003-04-17 22:24 Julien LEMOINE
  2003-04-18  0:27 ` Christopher Faylor
  0 siblings, 1 reply; 5+ messages in thread
From: Julien LEMOINE @ 2003-04-17 22:24 UTC (permalink / raw)
  To: binutils

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

Hello,
  (cc me answers since I am not subsribed)

  I have done some patches for debian/binutils, here is a list with
descriptions (urls are bug reports):

 * binutils-segv : Fixsegv when asked to relocate based on local symboles
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=126150
 * binutils-prelink : Fix objdump -R internal error on prelinked binaries
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=180088
 * binutils-gc : fix '--gc-sections doesn't work on Linux/x86'
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=182910
 * binutils-gdwarf2 : Fix crash on alpha with --gdwarf2
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=187211
 * binutils-alpha fix segv with ld on alpha
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=185556
 * binutils-flex: fix compilation with last flex release
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=188876

Feel free to contact me if there is an error in a patch or if you have 
questions.

Best Regards.
-- 
Julien LEMOINE / SpeedBlue


[-- Attachment #2: binutils-alpha.patch --]
[-- Type: text/plain, Size: 666 bytes --]

--- binutils-2.13.90.0.18/bfd/elf64-alpha.c	2003-01-21 19:21:32.000000000 +0100
+++ binutils-2.13.90.0.18-modif/bfd/elf64-alpha.c	2003-04-11 01:24:26.000000000 +0200
@@ -4184,9 +4184,12 @@
 
   loc = srel->contents;
   loc += srel->reloc_count++ * sizeof (Elf64_External_Rela);
-  bfd_elf64_swap_reloca_out (abfd, &outrel, loc);
-  BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count
-	      <= srel->_cooked_size);
+  if (loc)
+    {
+      bfd_elf64_swap_reloca_out (abfd, &outrel, loc);
+      BFD_ASSERT (sizeof (Elf64_External_Rela) * srel->reloc_count
+		  <= srel->_cooked_size);
+    }
 }
 
 /* Relocate an Alpha ELF section for a relocatable link.

[-- Attachment #3: binutils-flex.patch --]
[-- Type: text/plain, Size: 401 bytes --]

diff -r -u binutils-2.13.90.0.18.old/ld/ldlex.l binutils-2.13.90.0.18/ld/ldlex.l
--- binutils-2.13.90.0.18.old/ld/ldlex.l	2002-11-09 20:08:31.000000000 +0100
+++ binutils-2.13.90.0.18/ld/ldlex.l	2003-04-13 16:25:44.000000000 +0200
@@ -611,7 +611,7 @@
      int max_size;
 {
   *result = 0; 
-  if (yy_current_buffer->yy_input_file)
+  if (YY_CURRENT_BUFFER->yy_input_file)
     {
       if (yyin)
 	{

[-- Attachment #4: binutils-gc.patch --]
[-- Type: text/plain, Size: 905 bytes --]

diff -bBdNrw -U5 binutils-2.13.90.0.18.orig/bfd/elflink.h binutils-2.13.90.0.18/bfd/elflink.h
--- binutils-2.13.90.0.18.orig/bfd/elflink.h	2003-01-21 19:21:32.000000000 +0100
+++ binutils-2.13.90.0.18/bfd/elflink.h	2003-04-17 00:09:34.000000000 +0200
@@ -7849,12 +7849,12 @@
   asection * (*gc_mark_hook)
     PARAMS ((asection *, struct bfd_link_info *, Elf_Internal_Rela *,
 	     struct elf_link_hash_entry *h, Elf_Internal_Sym *));
 
   if (!get_elf_backend_data (abfd)->can_gc_sections
-      || info->relocateable || info->emitrelocations
-      || elf_hash_table (info)->dynamic_sections_created)
+      || info->relocateable || info->emitrelocations)
+    //      || elf_hash_table (info)->dynamic_sections_created)
     return TRUE;
 
   /* Apply transitive closure to the vtable entry usage info.  */
   elf_link_hash_traverse (elf_hash_table (info),
 			  elf_gc_propagate_vtable_entries_used,

[-- Attachment #5: binutils-gdwarf2.patch --]
[-- Type: text/plain, Size: 650 bytes --]

--- inutils-2.13.90.0.18.orig/gas/dwarf2dbg.c	2003-04-14 23:52:23.000000000 +0200
+++ inutils-2.13.90.0.18/gas/dwarf2dbg.c	2003-04-15 00:54:49.000000000 +0200
@@ -332,7 +332,8 @@
       return last_used;
 
   for (i = 1; i < files_in_use; ++i)
-    if (strcmp (filename, files[i].filename) == 0)
+    if (files && files[i].filename &&
+	strcmp (filename, files[i].filename) == 0)
       return i;
 
   if (i >= files_allocated)
@@ -350,7 +351,12 @@
   files[i].dir = 0;
   files_in_use = i + 1;
   last_used = i;
-
+  
+  if (!files[1].filename)
+    {
+      files[1].filename = xstrdup (filename);
+      files[1].dir = 0;
+    }
   return i;
 }
 

[-- Attachment #6: binutils-prelink.patch --]
[-- Type: text/plain, Size: 730 bytes --]

diff -bBdNrw -U5 binutils-2.13.90.0.18.orig/bfd/elfcode.h binutils-2.13.90.0.18/bfd/elfcode.h
--- binutils-2.13.90.0.18.orig/bfd/elfcode.h	2002-12-16 21:22:52.000000000 +0100
+++ binutils-2.13.90.0.18/bfd/elfcode.h	2003-04-16 21:53:08.000000000 +0200
@@ -1363,13 +1363,13 @@
 	    relent->sym_ptr_ptr = s->section->symbol_ptr_ptr;
 	}
 
       relent->addend = rela.r_addend;
 
-      if (entsize == sizeof (Elf_External_Rela))
-	(*ebd->elf_info_to_howto) (abfd, relent, &rela);
-      else
+      //if (entsize == sizeof (Elf_External_Rela))
+      //  (*ebd->elf_info_to_howto) (abfd, relent, &rela);
+      //else
 	(*ebd->elf_info_to_howto_rel) (abfd, relent, &rela);
     }
 
   if (allocated != NULL)
     free (allocated);

[-- Attachment #7: binutils-segv.patch --]
[-- Type: text/plain, Size: 1075 bytes --]

diff -bBdNrw -U5 binutils-2.13.90.0.18.orig/bfd/elflink.h binutils-2.13.90.0.18/bfd/elflink.h
--- binutils-2.13.90.0.18.orig/bfd/elflink.h	2003-01-21 19:21:32.000000000 +0100
+++ binutils-2.13.90.0.18/bfd/elflink.h	2003-04-16 22:22:10.000000000 +0200
@@ -6877,18 +6877,19 @@
 			 reloc to point to the global hash table entry
 			 for this symbol.  The symbol index is then
 			 set at the end of elf_bfd_final_link.  */
 		      indx = r_symndx - extsymoff;
 		      rh = elf_sym_hashes (input_bfd)[indx];
-		      while (rh->root.type == bfd_link_hash_indirect
-			     || rh->root.type == bfd_link_hash_warning)
+		      while (rh && (rh->root.type == bfd_link_hash_indirect
+				    || rh->root.type == bfd_link_hash_warning))
 			rh = (struct elf_link_hash_entry *) rh->root.u.i.link;
 
 		      /* Setting the index to -2 tells
 			 elf_link_output_extsym that this symbol is
 			 used by a reloc.  */
-		      BFD_ASSERT (rh->indx < 0);
+		      BFD_ASSERT (rh && rh->indx < 0);
+		      if (rh)
 		      rh->indx = -2;
 
 		      *rel_hash = rh;
 
 		      continue;

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Binutils Patches
  2003-04-17 22:24 Binutils Patches Julien LEMOINE
@ 2003-04-18  0:27 ` Christopher Faylor
  2003-04-18 10:37   ` Julien LEMOINE
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Faylor @ 2003-04-18  0:27 UTC (permalink / raw)
  To: Julien LEMOINE; +Cc: binutils

On Fri, Apr 18, 2003 at 12:24:19AM +0200, Julien LEMOINE wrote:
>Hello,
>  (cc me answers since I am not subsribed)

Don't you think you should be so that discussions don't occur
without you.


>  I have done some patches for debian/binutils, here is a list with
>descriptions (urls are bug reports):

Do you have an assignment with the FSF for binutils?  If not you'll
need to get one.

Also, it would be best if you submitted each patch individually,
to the mailing list.  That's generally how patch submission works
for binutils.

HTH,
cgf

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Binutils Patches
  2003-04-18  0:27 ` Christopher Faylor
@ 2003-04-18 10:37   ` Julien LEMOINE
  2003-04-18 15:30     ` Nick Clifton
  0 siblings, 1 reply; 5+ messages in thread
From: Julien LEMOINE @ 2003-04-18 10:37 UTC (permalink / raw)
  To: binutils

Hello,

* Christopher Faylor <cgf-binutils@redhat.com> [2003-04-17 20:28:02 -0400]:

> >  (cc me answers since I am not subsribed)
> 
> Don't you think you should be so that discussions don't occur
> without you.
Now, I am subsribed to this ml.

> 
> 
> >  I have done some patches for debian/binutils, here is a list with
> >descriptions (urls are bug reports):
> 
> Do you have an assignment with the FSF for binutils?  If not you'll
> need to get one.

No, I have not. What is the procedure to obtain an assignment form ?

> Also, it would be best if you submitted each patch individually,
> to the mailing list.  That's generally how patch submission works
> for binutils.

Do I have to wait for assignment complete ?
Or can I submit each patch individually now ?

Best Regards.
- 
Julien LEMOINE / SpeedBlue

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Binutils Patches
  2003-04-18 10:37   ` Julien LEMOINE
@ 2003-04-18 15:30     ` Nick Clifton
  2003-04-18 23:37       ` Julien LEMOINE
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Clifton @ 2003-04-18 15:30 UTC (permalink / raw)
  To: Julien LEMOINE; +Cc: binutils

Hi Julien,

> > Do you have an assignment with the FSF for binutils?  If not you'll
> > need to get one.
> 
> No, I have not. What is the procedure to obtain an assignment form ?

Please fill out the form below and send it off to the FSF.

> Do I have to wait for assignment complete ?
> Or can I submit each patch individually now ?

You can submit them individually now.  If any of them are very small,
simple and obvious, then they can be applied without waiting for the
copyright assignment process to complete.  For the rest though, we do
have wait until the assignment has come through.

Cheers
        Nick
---------------------------------------------------------------------------

request-assign.future:

Please email the following information to fsf-records@gnu.org, and we
will send you the assignment form for your past and future changes.
Please use your full name as the subject line of the message.


[What is the name of the program or package you're contributing to?]


[Did you copy any files or text written by someone else in these changes?
Even if that material is free software, we need to know about it.]


[Do you have an employer who might have a basis to claim to own
your changes?  Do you attend a school which might make such a claim?]


[For the copyright registration, what country are you a citizen of?]


[What year were you born?]


[Please write your email address here.]


[Please write your snail address here.]





[Which files have you changed so far, and which new files have you written
so far?]





---------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Binutils Patches
  2003-04-18 15:30     ` Nick Clifton
@ 2003-04-18 23:37       ` Julien LEMOINE
  0 siblings, 0 replies; 5+ messages in thread
From: Julien LEMOINE @ 2003-04-18 23:37 UTC (permalink / raw)
  To: binutils

Hello,

* Nick Clifton <nickc@redhat.com> [2003-04-18 16:29:52 +0100]:

> Hi Julien,
> 
> Please fill out the form below and send it off to the FSF.
Thanks, I sent it to FSF.

> You can submit them individually now.  If any of them are very small,
> simple and obvious, then they can be applied without waiting for the
> copyright assignment process to complete.  For the rest though, we do
> have wait until the assignment has come through.

Ok, one of my patch (binutils-flex to fix compilation with new flex 
release is already in cvs : ld/ldlex.l 1.18).

Best Regards.
-- 
Julien LEMOINE / SpeedBlue

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-04-18 23:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-17 22:24 Binutils Patches Julien LEMOINE
2003-04-18  0:27 ` Christopher Faylor
2003-04-18 10:37   ` Julien LEMOINE
2003-04-18 15:30     ` Nick Clifton
2003-04-18 23:37       ` Julien LEMOINE

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).