--- zzzz-none-000/linux-3.10.107/arch/mips/boot/compressed/ld.script 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/mips/boot/compressed/ld.script 2021-02-04 17:41:59.000000000 +0000 @@ -8,6 +8,9 @@ OUTPUT_ARCH(mips) ENTRY(start) +PHDRS { + text PT_LOAD FLAGS(7); /* RWX */ +} SECTIONS { /* Text and read-only data */ @@ -15,7 +18,7 @@ .text : { *(.text) *(.rodata) - } + }: text /* End of text section */ /* Writable data */ @@ -26,8 +29,12 @@ *(.image) __image_end = .; CONSTRUCTORS + . = ALIGN(16); } - . = ALIGN(16); + __appended_dtb = .; + /* leave space for appended DTB */ + . += 0x100000; + _edata = .; /* End of data section */