--- zzzz-none-000/linux-2.6.39.4/arch/arm/boot/compressed/vmlinux.lds.in 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/arch/arm/boot/compressed/vmlinux.lds.in 2021-11-10 13:38:14.000000000 +0000 @@ -11,18 +11,6 @@ ENTRY(_start) SECTIONS { - /DISCARD/ : { - *(.ARM.exidx*) - *(.ARM.extab*) - /* - * Discard any r/w data - this produces a link error if we have any, - * which is required for PIC decompression. Local data generates - * GOTOFF relocations, which prevents it being relocated independently - * of the text/got segments. - */ - *(.data) - } - . = TEXT_START; _text = .; @@ -47,6 +35,7 @@ .got : { *(.got) } _got_end = .; .got.plt : { *(.got.plt) } + .data : { *(.data) } _edata = .; . = BSS_START; @@ -54,8 +43,7 @@ .bss : { *(.bss) } _end = .; - . = ALIGN(8); /* the stack must be 64-bit aligned */ - .stack : { *(.stack) } + .stack (NOLOAD) : { *(.stack) } .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) }