diff options
author | Chris Metcalf <cmetcalf@ezchip.com> | 2015-07-08 23:07:41 +0200 |
---|---|---|
committer | Chris Metcalf <cmetcalf@ezchip.com> | 2015-07-09 00:53:49 +0200 |
commit | 673c2c34f684e9d4328459e426ab54d51a5865c5 (patch) | |
tree | 088062278fffd7a652761691dde8ba6c18104654 /lib/average.c | |
parent | Linux 4.2-rc1 (diff) | |
download | linux-673c2c34f684e9d4328459e426ab54d51a5865c5.tar.xz linux-673c2c34f684e9d4328459e426ab54d51a5865c5.zip |
modpost: work correctly with tile coldtext sections
The tilegx and tilepro compilers use .coldtext for their unlikely
executed text section name, so an __attribute__((cold)) function
will (when compiled with higher optimization levels) land in
the .coldtext section.
Modify modpost to add .coldtext to the set of OTHER_TEXT_SECTIONS
so we don't get warnings about referencing such a section in an
__ex_table block, and then also modify arch/tile/lib/memcpy_user_64.c
so that it uses plain ".coldtext" instead of ".coldtext.memcpy".
The latter naming is a relic of an earlier use of -ffunction-sections,
which we no longer use by default.
Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/average.c')
0 files changed, 0 insertions, 0 deletions