public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH: Fix elf_backend_section_from_phdr
@ 2005-03-03 21:13 H. J. Lu
  0 siblings, 0 replies; only message in thread
From: H. J. Lu @ 2005-03-03 21:13 UTC (permalink / raw)
  To: binutils

elf_backend_section_from_phdr should take 4 arguments. I checked in
the folllowing patch.


H.J.
----
2005-03-03  H.J. Lu  <hongjiu.lu@intel.com>

	* elf-bfd.h (elf_backend_data): Add "const char *" to
	elf_backend_section_from_phdr.

	* elf.c (bfd_section_from_phdr): Pass "proc" to the
	elf_backend_section_from_phdr hook.

--- bfd/elf-bfd.h.warn	2005-03-03 12:42:50.051148582 -0800
+++ bfd/elf-bfd.h	2005-03-03 12:37:47.461265000 -0800
@@ -641,7 +641,7 @@ struct elf_backend_data
   /* A function to handle unusual program segment types when creating BFD
      sections from ELF program segments.  */
   bfd_boolean (*elf_backend_section_from_phdr)
-    (bfd *, Elf_Internal_Phdr *, int);
+    (bfd *, Elf_Internal_Phdr *, int, const char *);
 
   /* A function to set up the ELF section header for a BFD section in
      preparation for writing it out.  This is where the flags and type
--- bfd/elf.c.warn	2005-03-03 10:28:52.000000000 -0800
+++ bfd/elf.c	2005-03-03 12:44:00.515039414 -0800
@@ -2385,7 +2385,7 @@ bfd_section_from_phdr (bfd *abfd, Elf_In
     default:
       /* Check for any processor-specific program segment types.  */
       bed = get_elf_backend_data (abfd);
-      return bed->elf_backend_section_from_phdr (abfd, hdr, index);
+      return bed->elf_backend_section_from_phdr (abfd, hdr, index, "proc");
     }
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-03 21:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-03 21:13 PATCH: Fix elf_backend_section_from_phdr H. J. Lu

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