diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index 7033d023f3..5dfaa6c86b 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds @@ -299,6 +299,7 @@ SECTIONS { *(.eh_frame) #ifdef CPU_MIPS + *(.MIPS.abiflags) *(.rel.dyn) #endif } diff --git a/firmware/target/mips/ingenic_jz47xx/app.lds b/firmware/target/mips/ingenic_jz47xx/app.lds index 8177db794f..89deb63f89 100644 --- a/firmware/target/mips/ingenic_jz47xx/app.lds +++ b/firmware/target/mips/ingenic_jz47xx/app.lds @@ -111,6 +111,7 @@ SECTIONS /DISCARD/ : { + *(.MIPS.abiflags); *(.eh_frame); *(.rel.dyn); } diff --git a/firmware/target/mips/ingenic_jz47xx/boot.lds b/firmware/target/mips/ingenic_jz47xx/boot.lds index 7b53272058..b5a3f51c01 100644 --- a/firmware/target/mips/ingenic_jz47xx/boot.lds +++ b/firmware/target/mips/ingenic_jz47xx/boot.lds @@ -91,4 +91,11 @@ SECTIONS . += 0x400; irqstackend = .; } > IRAM + + /DISCARD/ : + { + *(.MIPS.abiflags); + *(.eh_frame); + *(.rel.dyn); + } } diff --git a/firmware/target/mips/ingenic_x1000/app.lds b/firmware/target/mips/ingenic_x1000/app.lds index bcfb3b28cf..48a2d8d3c5 100644 --- a/firmware/target/mips/ingenic_x1000/app.lds +++ b/firmware/target/mips/ingenic_x1000/app.lds @@ -113,6 +113,7 @@ SECTIONS /DISCARD/ : { + *(.MIPS.abiflags); *(.eh_frame); *(.rel.dyn); } diff --git a/firmware/target/mips/ingenic_x1000/spl.lds b/firmware/target/mips/ingenic_x1000/spl.lds index f11fd2cf3b..39b5939a6a 100644 --- a/firmware/target/mips/ingenic_x1000/spl.lds +++ b/firmware/target/mips/ingenic_x1000/spl.lds @@ -57,4 +57,11 @@ SECTIONS { *(.sdram); } > DRAM + + /DISCARD/ : + { + *(.MIPS.abiflags); + *(.eh_frame); + *(.rel.dyn); + } }