build: Discard .eh_frame section in linker scripts to fix potential GNU toolchain miscompilation

This commit is contained in:
mintsuki 2022-08-15 16:22:56 +02:00
parent 031cd12458
commit 87fb40d034
4 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,7 @@ SECTIONS
} :data_s3 } :data_s3
/DISCARD/ : { /DISCARD/ : {
*(.eh_frame)
*(.note .note.*) *(.note .note.*)
} }
} }

View File

@ -85,6 +85,7 @@ SECTIONS
__image_end = __data_end; __image_end = __data_end;
/DISCARD/ : { /DISCARD/ : {
*(.eh_frame)
*(.note .note.*) *(.note .note.*)
} }
} }

View File

@ -85,6 +85,7 @@ SECTIONS
__image_end = __data_end; __image_end = __data_end;
/DISCARD/ : { /DISCARD/ : {
*(.eh_frame)
*(.note .note.*) *(.note .note.*)
} }
} }

View File

@ -30,6 +30,7 @@ SECTIONS
} :data } :data
/DISCARD/ : { /DISCARD/ : {
*(.eh_frame)
*(.note .note.*) *(.note .note.*)
} }
} }