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
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
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
Kbuild.include
Lindent
Makefile
Makefile.asm-generic
Makefile.build
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
Makefile.modsign
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
checksyscalls.sh
checkversion.pl
cleanfile
cleanpatch
coccicheck
config
conmakehash.c
decodecode
depmod.sh
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
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
kernel-doc scripts/kernel-doc: don't eat struct members with __aligned 2015-01-16 06:59:02 -08:00
link-vmlinux.sh
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
show_delta
sign-file
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