]> git.pld-linux.org Git - packages/binutils.git/commitdiff
- fix ugly linker bug.
authorPaweł Sikora <pluto@pld-linux.org>
Fri, 20 Oct 2006 19:53:25 +0000 (19:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    binutils-pr3314.patch -> 1.1

binutils-pr3314.patch [new file with mode: 0644]

diff --git a/binutils-pr3314.patch b/binutils-pr3314.patch
new file mode 100644 (file)
index 0000000..2c94720
--- /dev/null
@@ -0,0 +1,27 @@
+H.J.
+2006-10-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/3314
+       * elf.c (assign_file_positions_for_non_load_sections): Don't
+       page align empty SHF_ALLOC sections.  
+
+--- bfd/elf.c.empty    2006-09-29 09:00:21.000000000 -0700
++++ bfd/elf.c  2006-10-06 09:14:04.000000000 -0700
+@@ -4663,11 +4663,12 @@ assign_file_positions_for_non_load_secti
+         if (hdr->sh_size != 0)
+           ((*_bfd_error_handler)
+            (_("%B: warning: allocated section `%s' not in segment"),
+-              abfd,
+-              (hdr->bfd_section == NULL
+-               ? "*unknown*" 
+-               : hdr->bfd_section->name)));
+-        if ((abfd->flags & D_PAGED) != 0)
++            abfd,
++            (hdr->bfd_section == NULL
++             ? "*unknown*"
++             : hdr->bfd_section->name)));
++        /* We don't need to page align empty sections.  */
++        if ((abfd->flags & D_PAGED) != 0 && hdr->sh_size != 0)
+           off += vma_page_aligned_bias (hdr->sh_addr, off,
+                                         bed->maxpagesize);
+         else
This page took 0.053813 seconds and 4 git commands to generate.