Newer versions of LLVM may use profile information to put code in sections named .text.unlikely.*. Make sure those sections end up in our .text section. Change-Id: Ia0224fd8e683f5e77c60dd3ad34d59b33f9b41ab Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/44804 Commit-Queue: Peter Collingbourne <pcc@google.com> Reviewed-by: Adam Langley <agl@google.com>
26 lines
466 B
Plaintext
26 lines
466 B
Plaintext
SECTIONS
|
|
{
|
|
.text : {
|
|
BORINGSSL_bcm_text_start = .;
|
|
*(.text)
|
|
*(.text.unlikely.*)
|
|
BORINGSSL_bcm_text_end = .;
|
|
}
|
|
.rodata : {
|
|
BORINGSSL_bcm_rodata_start = .;
|
|
*(.rodata)
|
|
*(.rodata.*)
|
|
BORINGSSL_bcm_rodata_end = .;
|
|
}
|
|
|
|
/DISCARD/ : {
|
|
/* These sections shouldn't exist. In order to catch any slip-ups, direct
|
|
* the linker to discard them. */
|
|
*(.rela.dyn)
|
|
*(.data)
|
|
*(.rel.ro)
|
|
*(*.text.*)
|
|
*(*.data.*)
|
|
}
|
|
}
|