linux/scripts
Rabin Vincent 9905ce8ad7 ftrace/recordmcount: Avoid STT_FUNC symbols as base on ARM
While find_secsym_ndx often finds the unamed local STT_SECTION, if a
section has only one function in it, the ARM toolchain generates the
STT_FUNC symbol before the STT_SECTION, and recordmcount finds this
instead.

This is problematic on ARM because in ARM ELFs, "if a [STT_FUNC] symbol
addresses a Thumb instruction, its value is the address of the
instruction with bit zero set (in a relocatable object, the section
offset with bit zero set)".  This leads to incorrect mcount addresses
being recorded.

Fix this by not using STT_FUNC symbols as the base on ARM.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Link: http://lkml.kernel.org/r/1305134631-31617-1-git-send-email-rabin@rab.in
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2011-05-25 19:56:33 -04:00
..
basic kbuild: Fix computing srcversion for modules 2011-03-13 15:59:58 -07:00
coccinelle
dtc Fix common misspellings 2011-03-31 11:26:23 -03:00
genksyms genksyms: Regenerate lexer and parser 2011-03-17 15:13:56 +01:00
kconfig kconfig: Avoid buffer underrun in choice input 2011-04-24 08:24:31 -07:00
ksymoops
mod modpost: Update 64k section support for binutils 2.18.50 2011-05-19 16:55:28 +09:30
package Fix common misspellings 2011-03-31 11:26:23 -03:00
rt-tester Fix common misspellings 2011-03-31 11:26:23 -03:00
selinux SELinux: Auto-generate security_is_socket_class 2011-03-03 15:19:43 -05:00
tracing
.gitignore
bin2c.c
bloat-o-meter bloat-o-meter: include read-only data section in report 2011-03-22 17:44:17 -07:00
bootgraph.pl
checkincludes.pl
checkkconfigsymbols.sh
checkpatch.pl Fix common misspellings 2011-03-31 11:26:23 -03:00
checkstack.pl
checksyscalls.sh
checkversion.pl
cleanfile
cleanpatch
coccicheck
config
conmakehash.c
decodecode
diffconfig
export_report.pl
extract-ikconfig scripts/extract-ikconfig: add xz compression support 2011-02-10 15:23:03 +01:00
gcc-goto.sh
gcc-version.sh
gcc-x86_32-has-stack-protector.sh
gcc-x86_64-has-stack-protector.sh
gen_initramfs_list.sh Fix common misspellings 2011-03-31 11:26:23 -03:00
get_maintainer.pl get_maintainer.pl: allow "K:" pattern tests to match non-patch text 2011-03-22 17:44:13 -07:00
gfp-translate
headerdep.pl
headers_check.pl
headers_install.pl
headers.sh
kallsyms.c
Kbuild.include
kernel-doc Fix common misspellings 2011-03-31 11:26:23 -03:00
Lindent
Makefile KBuild: silence "'scripts/unifdef' is up to date." 2011-03-17 12:29:20 +01:00
Makefile.build ftrace/kbuild: Add recordmcount files to force full build 2011-05-19 07:58:28 -04:00
Makefile.clean
Makefile.fwinst
Makefile.headersinst
Makefile.help
Makefile.host
Makefile.lib decompressors: add XZ decompressor module 2011-01-13 08:03:24 -08:00
Makefile.modbuiltin
Makefile.modinst
Makefile.modpost Fix common misspellings 2011-03-31 11:26:23 -03:00
makelst
markup_oops.pl
mkcompile_h
mkmakefile
mksysmap
mkuboot.sh mkuboot.sh: Fail if mkimage is missing 2011-01-07 14:31:01 +01:00
mkversion
module-common.lds module: Sort exported symbols 2011-05-19 16:55:27 +09:30
namespace.pl
patch-kernel
pnmtologo.c
profile2linkerlist.pl
recordmcount.c ftrace/s390: mcount offset calculation 2011-05-16 15:05:06 -04:00
recordmcount.h ftrace/recordmcount: Avoid STT_FUNC symbols as base on ARM 2011-05-25 19:56:33 -04:00
recordmcount.pl ftrace/s390: mcount offset calculation 2011-05-16 15:05:06 -04:00
setlocalversion setlocalversion: update mercurial tag parsing 2011-01-15 00:40:44 +01:00
show_delta
tags.sh scripts/tags.sh: Add magic for trace-events for etags too 2011-05-25 19:56:31 -04:00
unifdef.c unifdef: update to upstream version 2.5 2011-01-22 15:50:59 +01:00
ver_linux
xz_wrap.sh decompressors: add XZ decompressor module 2011-01-13 08:03:24 -08:00