android_kernel_samsung_msm8976/scripts
Laura Abbott 2ddf81e351 ftrace/recordmcount: Work around for addition of metag magic but not relocations
commit b2e1c26f0b62531636509fbcb6dab65617ed8331 upstream.

glibc recently did a sync up (94e73c95d9b5 "elf.h: Sync with the gabi
webpage") that added a #define for EM_METAG but did not add relocations

This triggers build errors:

scripts/recordmcount.c: In function 'do_file':
scripts/recordmcount.c:466:28: error: 'R_METAG_ADDR32' undeclared (first use in this function)
  case EM_METAG:  reltype = R_METAG_ADDR32;
                            ^~~~~~~~~~~~~~
scripts/recordmcount.c:466:28: note: each undeclared identifier is reported only once for each function it appears in
scripts/recordmcount.c:468:20: error: 'R_METAG_NONE' undeclared (first use in this function)
     rel_type_nop = R_METAG_NONE;
                    ^~~~~~~~~~~~

Work around this change with some more #ifdefery for the relocations.

Fedora Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1354034

Link: http://lkml.kernel.org/r/1468005530-14757-1-git-send-email-labbott@redhat.com

Cc: stable@vger.kernel.org # v3.9+
Cc: James Hogan <james.hogan@imgtec.com>
Fixes: 00512bdd45 ("metag: ftrace support")
Reported-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:42:00 +02:00
..
basic kbuild: fixdep: support concatenated dep files 2013-04-05 12:22:58 -06:00
coccinelle scripts/coccinelle: modernize & 2016-06-07 10:42:47 +02:00
dtc dtc: add integer overflow checks in fdt header 2014-11-18 13:29:13 -08:00
genksyms genksyms: pass symbol-prefix instead of arch 2013-03-20 11:27:27 +10:30
kconfig Merge remote-tracking branch 'f2fs/linux-3.10.y' into HEAD 2017-04-18 17:02:28 +02:00
ksymoops
mod Merge upstream tag 'v3.10.49' into msm-3.10 2014-08-20 13:23:09 -07:00
package deb-pkg: Fix cross-building linux-headers package 2014-03-31 09:58:13 -07:00
rt-tester
selinux
tracing
.gitignore
asn1_compiler.c X.509: remove possible code fragility: enumeration values not handled 2017-04-18 12:11:12 +02:00
bin2c.c
bloat-o-meter scripts/bloat-o-meter: fix python3 syntax error 2016-02-25 11:57:49 -08:00
bootgraph.pl
build-all.py scripts: Restore some of the parallism in "all" builds 2015-05-27 10:48:33 -07:00
checkincludes.pl
checkkconfigsymbols.sh
checkpatch.pl Revert "checkpatch: emit a warning on file add/move/delete" 2015-06-25 17:54:58 -07:00
checkstack.pl scripts/checkstack.pl: Add metag support 2013-03-02 20:09:55 +00:00
checksyscalls.sh
checkversion.pl
cleanfile
cleanpatch
coccicheck Coccinelle: Fix patch output when coccicheck is used with M= and C= 2013-04-08 15:42:03 +02:00
config scripts/config: fix assignment of parameters for short version of --*-after options 2013-05-20 14:15:17 +02:00
conmakehash.c
decodecode scripts/decodecode: make faulting insn ptr more robust 2013-04-29 15:54:27 -07:00
depmod.sh depmod: pass -P $CONFIG_SYMBOL_PREFIX 2013-02-22 11:52:31 +01:00
diffconfig
docproc.c
export_report.pl
extract-ikconfig
extract-vmlinux
gcc-goto.sh
gcc-version.sh
gcc-wrapper.py Merge "scripts: Call out python2 explicitly" 2015-04-30 23:29:27 -07:00
gcc-x86_32-has-stack-protector.sh
gcc-x86_64-has-stack-protector.sh
gen_initramfs_list.sh
get_maintainer.pl get_maintainer: use filename-only regex match for Tegra 2013-04-29 18:28:14 -07:00
gfp-translate
headerdep.pl
headers.sh
headers_check.pl
headers_install.sh kbuild: fix make headers_install when path is too long 2014-04-14 06:42:14 -07:00
kallsyms.c scripts/kallsyms: filter symbols not in kernel address space 2013-12-02 16:44:06 -05:00
Kbuild.include kbuild: fix ld-option function 2013-04-08 11:47:41 +02:00
kernel-doc scripts/kernel-doc: don't eat struct members with __aligned 2015-01-16 06:59:02 -08:00
Lindent
link-vmlinux.sh scripts/kallsyms: filter symbols not in kernel address space 2013-12-02 16:44:06 -05:00
Makefile
Makefile.asm-generic
Makefile.build genksyms: pass symbol-prefix instead of arch 2013-03-20 11:27:27 +10:30
Makefile.clean
Makefile.fwinst
Makefile.headersinst Merge upstream tag 'v3.10.40' into msm-3.10 2014-06-18 13:10:54 -07:00
Makefile.help
Makefile.host
Makefile.kasan kasan: enable instrumentation of global variables 2015-05-04 14:03:57 -07:00
Makefile.lib scripts: Don't create .reverse.dts files 2017-04-18 03:46:37 +02:00
Makefile.modbuiltin
Makefile.modinst kbuild: make it possible to specify the module output dir 2015-03-19 15:00:14 -07:00
Makefile.modpost modpost: Make section mismatches an error 2013-07-08 05:52:17 -07:00
Makefile.modsign
makelst
markup_oops.pl
mkcompile_h
mkmakefile
mksysmap
mkuboot.sh
mkversion
module-common.lds
namespace.pl
patch-kernel
pnmtologo.c
profile2linkerlist.pl
recordmcount.c ftrace/recordmcount: Work around for addition of metag magic but not relocations 2019-07-27 21:42:00 +02:00
recordmcount.h recordmcount: Fix endianness handling bug for nop_mcount 2016-02-19 14:22:37 -08:00
recordmcount.pl This is the 3.10.96 stable release 2017-04-18 17:16:02 +02:00
setlocalversion setlocalversion: Include post Linus git tags in LOCALVERSION_AUTO 2013-07-08 05:52:17 -07:00
show_delta
sign-file MODSIGN: Add -s <signature> option to sign-file 2013-01-25 16:55:36 +10:30
sortextable.c scripts: remove unused function in sortextable.c 2017-04-18 10:33:44 +02:00
sortextable.h scripts/sortextable: suppress warning: `relocs_size' may be used uninitialized 2017-04-18 10:33:40 +02:00
spelling.txt checkpatch: look for common misspellings 2015-06-25 17:43:57 -07:00
tags.sh scripts/tags.sh: catch 4.9-rc6 2016-12-09 11:37:57 -08:00
unifdef.c
ver_linux
xz_wrap.sh