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 fb2a6e1f29
commit 17e23dd7f6
4 changed files with 4 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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