source: trunk/packages/xen-common/xen-common/patches/linux-2.6.18/x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

  • Property svn:mime-type set to text/x-patch
File size: 2.1 KB
  • arch/x86_64/kernel/vmlinux.lds.S

    diff -pruN ../orig-linux-2.6.18/arch/x86_64/kernel/vmlinux.lds.S ./arch/x86_64/kernel/vmlinux.lds.S
    old new OUTPUT_FORMAT("elf64-x86-64", "elf64-x86 
    1313OUTPUT_ARCH(i386:x86-64)
    1414ENTRY(phys_startup_64)
    1515jiffies_64 = jiffies;
     16PHDRS {
     17        text PT_LOAD FLAGS(5);  /* R_E */
     18        data PT_LOAD FLAGS(7);  /* RWE */
     19        user PT_LOAD FLAGS(7);  /* RWE */
     20        note PT_NOTE FLAGS(4);  /* R__ */
     21}
    1622SECTIONS
    1723{
    1824  . = __START_KERNEL;
    SECTIONS 
    3137        KPROBES_TEXT
    3238        *(.fixup)
    3339        *(.gnu.warning)
    34         } = 0x9090
     40        } :text = 0x9090
    3541                                /* out-of-line lock text */
    3642  .text.lock : AT(ADDR(.text.lock) - LOAD_OFFSET) { *(.text.lock) }
    3743
    SECTIONS 
    5763  .data : AT(ADDR(.data) - LOAD_OFFSET) {
    5864        *(.data)
    5965        CONSTRUCTORS
    60         }
     66        } :data
    6167
    6268  _edata = .;                   /* End of data section */
    6369
    64   __bss_start = .;              /* BSS */
    65   .bss : AT(ADDR(.bss) - LOAD_OFFSET) {
    66         *(.bss.page_aligned)   
    67         *(.bss)
    68         }
    69   __bss_stop = .;
    70 
    7170  . = ALIGN(PAGE_SIZE);
    7271  . = ALIGN(CONFIG_X86_L1_CACHE_BYTES);
    7372  .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET) {
    SECTIONS 
    8988#define VVIRT(x) (ADDR(x) - VVIRT_OFFSET)
    9089
    9190  . = VSYSCALL_ADDR;
    92   .vsyscall_0 :  AT(VSYSCALL_PHYS_ADDR) { *(.vsyscall_0) }
     91  .vsyscall_0 :  AT(VSYSCALL_PHYS_ADDR) { *(.vsyscall_0) } :user
    9392  __vsyscall_0 = VSYSCALL_VIRT_ADDR;
    9493
    9594  . = ALIGN(CONFIG_X86_L1_CACHE_BYTES);
    SECTIONS 
    132131  . = ALIGN(8192);              /* init_task */
    133132  .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET) {
    134133        *(.data.init_task)
    135   }
     134  } :data
    136135
    137136  . = ALIGN(4096);
    138137  .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET) {
    SECTIONS 
    222221  . = ALIGN(4096);
    223222  __nosave_end = .;
    224223
     224  __bss_start = .;              /* BSS */
     225  . = ALIGN(4096);
     226  .bss : AT(ADDR(.bss) - LOAD_OFFSET) {
     227        *(.bss.page_aligned)
     228        *(.bss)
     229        }
     230  __bss_stop = .;
     231
    225232  _end = . ;
    226233
    227234  /* Sections to be discarded */
    SECTIONS 
    235242  STABS_DEBUG
    236243
    237244  DWARF_DEBUG
     245
     246  NOTES
    238247}
Note: See TracBrowser for help on using the repository browser.