New gold linker option -z,text-unlikely-segment.
authorSriraman Tallam <tmsriram@google.com>
Fri, 20 Oct 2017 18:00:28 +0000 (11:00 -0700)
committerSriraman Tallam <tmsriram@google.com>
Fri, 20 Oct 2017 18:00:28 +0000 (11:00 -0700)
commit3b4190ccb31be262a5aac78238e6d659746f1f0f
tree462cab8fff8edfd52d66b6e46e73620c88ea1ea7
parentf3012016f008030b48597b578a5fb1e550907374
New gold linker option -z,text-unlikely-segment.

2017-10-04  Sriraman Tallam  <tmsriram@google.com>

* options.h (-z,text_unlikely_segment): New option.
* layout.cc (Layout::layout): Create new output section
for .text.unlikely sections with the new option.
(Layout::segment_precedes): Check for the new option
when segment flags match.
* testsuite/text_unlikely_segment.cc: New test source.
* testsuite/text_unlikely_segment.sh: New test script.
* testsuite/Makefile.am (text_unlikely_segment): New test.
* testsuite/Makefile.in: Regenerate.
gold/ChangeLog
gold/layout.cc
gold/options.h
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/text_unlikely_segment.cc [new file with mode: 0644]
gold/testsuite/text_unlikely_segment.sh [new file with mode: 0755]
This page took 0.025759 seconds and 4 git commands to generate.