mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
ANDROID: vmlinux.lds.h: Keep .eh_frame with CFI
Specify a placement for the .eh_frame section to avoid orphan section warnings from the linker. Bug: 188764690 Change-Id: I34e09b7e7370a36cafaa96644f93b4740c02800f Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
parent
bcfe28b62f
commit
a4fbf60f6e
|
|
@ -824,12 +824,22 @@
|
||||||
*(COMMON) \
|
*(COMMON) \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Keep .eh_frame with CFI.
|
||||||
|
*/
|
||||||
|
#ifdef CONFIG_CFI_CLANG
|
||||||
|
#define EH_FRAME .eh_frame : { *(.eh_frame) }
|
||||||
|
#else
|
||||||
|
#define EH_FRAME
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DWARF debug sections.
|
* DWARF debug sections.
|
||||||
* Symbols in the DWARF debugging sections are relative to
|
* Symbols in the DWARF debugging sections are relative to
|
||||||
* the beginning of the section so we begin them at 0.
|
* the beginning of the section so we begin them at 0.
|
||||||
*/
|
*/
|
||||||
#define DWARF_DEBUG \
|
#define DWARF_DEBUG \
|
||||||
|
EH_FRAME \
|
||||||
/* DWARF 1 */ \
|
/* DWARF 1 */ \
|
||||||
.debug 0 : { *(.debug) } \
|
.debug 0 : { *(.debug) } \
|
||||||
.line 0 : { *(.line) } \
|
.line 0 : { *(.line) } \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user