]> sourceware.org Git - newlib-cygwin.git/commitdiff
bfd/
authorAlan Modra <modra@gmail.com>
Sat, 27 May 2006 00:47:45 +0000 (00:47 +0000)
committerAlan Modra <modra@gmail.com>
Sat, 27 May 2006 00:47:45 +0000 (00:47 +0000)
* elf.c (assign_file_positions_for_load_sections): Retrieve
maxpagesize from m->p_align if it is valid.  Set p_vaddr,
p_paddr and p_align earlier.  Revert 2006-05-19 change to p_align.
(copy_elf_program_header): Copy p_align.  Set p_align_valid.
include/elf/
* internal.h (elf_segment_map): Add p_align and p_align_valid.

include/elf/ChangeLog
include/elf/internal.h

index f88b4137c45dd9d3945c81dca5b7f3b21cb660f2..fb3476cf60935da993801082a60f536513953e1b 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * internal.h (struct elf_segment_map): Add p_align and p_align_valid.
+
 2006-05-24  Carlos O'Donell  <carlos@systemhalted.org>
            Randolph Chung  <randolph@tausq.org>
        * hppa.h (R_PARISC_TLS_GD21L, R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL,
index e4eba7d6cb348a81ec343448c0441a72885f90c1..ff27c88bd441ff13a46448ebf0093411f0b06a98 100644 (file)
@@ -1,6 +1,6 @@
 /* ELF support for BFD.
    Copyright 1991, 1992, 1993, 1994, 1995, 1997, 1998, 2000, 2001, 2002,
-   2003 Free Software Foundation, Inc.
+   2003, 2006 Free Software Foundation, Inc.
 
    Written by Fred Fish @ Cygnus Support, from information published
    in "UNIX System V Release 4, Programmers Guide: ANSI C and
@@ -235,12 +235,17 @@ struct elf_segment_map
   unsigned long p_flags;
   /* Program segment physical address.  */
   bfd_vma p_paddr;
+  /* Program segment alignment.  */
+  bfd_vma p_align;
   /* Whether the p_flags field is valid; if not, the flags are based
      on the section flags.  */
   unsigned int p_flags_valid : 1;
   /* Whether the p_paddr field is valid; if not, the physical address
      is based on the section lma values.  */
   unsigned int p_paddr_valid : 1;
+  /* Whether the p_align field is valid; if not, PT_LOAD segment
+     alignment is based on the default maximum page size.  */
+  unsigned int p_align_valid : 1;
   /* Whether this segment includes the file header.  */
   unsigned int includes_filehdr : 1;
   /* Whether this segment includes the program headers.  */
This page took 0.034951 seconds and 5 git commands to generate.