]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ctf: change the name of the CTF section in kernel modules
authorNick Alcock <nick.alcock@oracle.com>
Mon, 30 Jul 2012 21:33:44 +0000 (22:33 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:40:27 +0000 (22:40 +0100)
Since we have broken backward-compatibility with Solaris libctf and changed the
magic number in CTF files, we should change the name of the section they are
written to. .dtrace_ctf seems like a good idea (which means that shared types
will now be found in the .dtrace_ctf.dtrace_ctf section, rather than, as
before, .SUNW_ctf.dtrace_ctf).

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
scripts/Makefile.modpost

index acdf1715acd581867ed1d6a4891a45b20ae81f5c..4056968961a3a120a1a32da645bc78cac157fefb 100644 (file)
@@ -187,8 +187,8 @@ module-ctfs-modular = $(addprefix .ctf/,$(notdir $*.mod.ctf))
 module-ctf-flags = $(if $(filter dtrace_ctf.ko,$(notdir $@)), \
                   --strip-debug \
                    $(foreach builtin,$(wildcard .ctf/*.builtin.ctf), \
-                             --add-section $(patsubst %.builtin.ctf,.SUNW_ctf.%,$(notdir $(builtin)))=$(builtin)), \
-                   --add-section .SUNW_ctf=$(addprefix .ctf/,$(notdir $(basename $@)).mod.ctf))
+                             --add-section $(patsubst %.builtin.ctf,.dtrace_ctf.%,$(notdir $(builtin)))=$(builtin)), \
+                   --add-section .dtrace_ctf=$(addprefix .ctf/,$(notdir $(basename $@)).mod.ctf))
 
 # We have to put content in our dummy no-CTF files because --add-section
 # in binutils 2.20 silently fails if asked to add an empty file as a section.