1. 13 4月, 2015 2 次提交
  2. 03 10月, 2014 1 次提交
    • K
      aarch64: filter $x from kallsyms · 6c34f1f5
      Kyle McMartin 提交于
      Similar to ARM, AArch64 is generating $x and $d syms... which isn't
      terribly helpful when looking at %pF output and the like. Filter those
      out in kallsyms, modpost and when looking at module symbols.
      
      Seems simplest since none of these check EM_ARM anyway, to just add it
      to the strchr used, rather than trying to make things overly
      complicated.
      
      initcall_debug improves:
      dmesg_before.txt: initcall $x+0x0/0x154 [sg] returned 0 after 26331 usecs
      dmesg_after.txt: initcall init_sg+0x0/0x154 [sg] returned 0 after 15461 usecs
      Signed-off-by: NKyle McMartin <kyle@redhat.com>
      Acked-by: NRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      6c34f1f5
  3. 27 8月, 2014 2 次提交
  4. 27 7月, 2014 2 次提交
  5. 10 6月, 2014 1 次提交
  6. 05 5月, 2014 1 次提交
  7. 28 4月, 2014 1 次提交
  8. 19 2月, 2014 1 次提交
  9. 14 2月, 2014 3 次提交
  10. 15 1月, 2014 1 次提交
  11. 13 11月, 2013 1 次提交
  12. 07 11月, 2013 1 次提交
  13. 29 10月, 2013 1 次提交
  14. 23 9月, 2013 1 次提交
    • G
      modpost: Optionally ignore secondary errors seen if a single module build fails · eed380f3
      Guenter Roeck 提交于
      Commit ea4054a2 (modpost: handle huge numbers of modules) added
      support for building a large number of modules.
      
      Unfortunately, the commit changed the semantics of the makefile: Instead of
      passing only existing object files to modpost, make now passes all expected
      object files. If make was started with option -i, this results in a modpost
      error if a single file failed to build.
      
      Example with the current btrfs build falure on m68k:
      
      fs/btrfs/btrfs.o: No such file or directory
      make[1]: [__modpost] Error 1 (ignored)
      
      This error is followed by lots of errors such as:
      
      m68k-linux-gcc: error: arch/m68k/emu/nfcon.mod.c: No such file or directory
      m68k-linux-gcc: fatal error: no input files
      compilation terminated.
      make[1]: [arch/m68k/emu/nfcon.mod.o] Error 1 (ignored)
      
      This doesn't matter much for normal builds, but it is annoying for builds
      started with "make -i" due to the large number of secondary errors.
      Those errors unnececessarily clog any error log and make it difficult
      to find the real errors in the build.
      
      Fix the problem by adding a new parameter '-n' to modpost. If this parameter
      is specified, modpost reports but ignores missing object files.
      
      With this patch, error output from above problem is (with make -i):
      
      m68k-linux-ld: cannot find fs/btrfs/ioctl.o: No such file or directory
      make[2]: [fs/btrfs/btrfs.o] Error 1 (ignored)
      ...
      fs/btrfs/btrfs.o: No such file or directory (ignored)
      
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Michael Marek <mmarek@suse.cz>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      eed380f3
  15. 20 8月, 2013 1 次提交
  16. 27 6月, 2013 1 次提交
  17. 20 5月, 2013 1 次提交
    • T
      modpost.c: Add .text.unlikely to TEXT_SECTIONS · 06df44ee
      Tom Rini 提交于
      gcc's places cold functions into the .text.unlikely section and we
      need to check this section as well for section mismatches otherwise we
      may have false negatives for this test.
      
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-kbuild@vger.kernel.org
      Signed-off-by: NTom Rini <trini@ti.com>
      Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (wording update)
      06df44ee
  18. 29 4月, 2013 1 次提交
  19. 05 4月, 2013 2 次提交
  20. 20 3月, 2013 1 次提交
    • J
      module: fix symbol versioning with symbol prefixes · a4b6a77b
      James Hogan 提交于
      Fix symbol versioning on architectures with symbol prefixes. Although
      the build was free from warnings the actual modules still wouldn't load
      as the ____versions table contained unprefixed symbol names, which were
      being compared against the prefixed symbol names when checking the
      symbol versions.
      
      This is fixed by modifying modpost to add the symbol prefix to the
      ____versions table it outputs (Modules.symvers still contains unprefixed
      symbol names). The check_modstruct_version() function is also fixed as
      it checks the version of the unprefixed "module_layout" symbol which
      would no longer work.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jonathan Kliegman <kliegs@chromium.org>
      Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (use VMLINUX_SYMBOL_STR)
      a4b6a77b
  21. 15 3月, 2013 1 次提交
    • R
      CONFIG_SYMBOL_PREFIX: cleanup. · b92021b0
      Rusty Russell 提交于
      We have CONFIG_SYMBOL_PREFIX, which three archs define to the string
      "_".  But Al Viro broke this in "consolidate cond_syscall and
      SYSCALL_ALIAS declarations" (in linux-next), and he's not the first to
      do so.
      
      Using CONFIG_SYMBOL_PREFIX is awkward, since we usually just want to
      prefix it so something.  So various places define helpers which are
      defined to nothing if CONFIG_SYMBOL_PREFIX isn't set:
      
      1) include/asm-generic/unistd.h defines __SYMBOL_PREFIX.
      2) include/asm-generic/vmlinux.lds.h defines VMLINUX_SYMBOL(sym)
      3) include/linux/export.h defines MODULE_SYMBOL_PREFIX.
      4) include/linux/kernel.h defines SYMBOL_PREFIX (which differs from #7)
      5) kernel/modsign_certificate.S defines ASM_SYMBOL(sym)
      6) scripts/modpost.c defines MODULE_SYMBOL_PREFIX
      7) scripts/Makefile.lib defines SYMBOL_PREFIX on the commandline if
         CONFIG_SYMBOL_PREFIX is set, so that we have a non-string version
         for pasting.
      
      (arch/h8300/include/asm/linkage.h defines SYMBOL_NAME(), too).
      
      Let's solve this properly:
      1) No more generic prefix, just CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX.
      2) Make linux/export.h usable from asm.
      3) Define VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR().
      4) Make everyone use them.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Reviewed-by: NJames Hogan <james.hogan@imgtec.com>
      Tested-by: James Hogan <james.hogan@imgtec.com> (metag)
      b92021b0
  22. 25 1月, 2013 1 次提交
  23. 21 1月, 2013 1 次提交
    • V
      modpost: Ignore ARC specific non-alloc sections · f2e207f3
      Vineet Gupta 提交于
      ARC relocatable object files contain one/more .gnu.linkonce.arcextmap.*
      sections (collated by kernel/vmlinux.lds into .arcextmap in final link).
      This section is used by debuggers to display the extension instructions
      and need-not be loaded by target (hence !SHF_ALLOC)
      
      The final kernel binary only needs .arcextmap entry in modpost's ignore
      list (section_white_list[]). However when building modules, modpost scans
      each object file individually, hence tripping on non-aggregated
      .gnu.linkonce.arcextmap.* entries as well.
      
      Thus need for the 2 entires !
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      Acked-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      f2e207f3
  24. 01 12月, 2012 1 次提交
  25. 12 10月, 2012 1 次提交
  26. 04 10月, 2012 1 次提交
  27. 17 6月, 2012 1 次提交
  28. 23 5月, 2012 2 次提交
  29. 10 4月, 2012 1 次提交
    • F
      modpost: Fix modpost license checking of vmlinux.o · 258f7426
      Frank Rowand 提交于
      Commit f02e8a65 ("module: Sort exported symbols") sorts symbols
      placing each of them in its own elf section.  This sorting and merging
      into the canonical sections are done by the linker.
      
      Unfortunately modpost to generate Module.symvers file parses vmlinux.o
      (which is not linked yet) and all modules object files (which aren't
      linked yet).  These aren't sanitized by the linker yet.  That breaks
      modpost that can't detect license properly for modules.
      
      This patch makes modpost aware of the new exported symbols structure.
      
      [ This above is a slightly corrected version of the explanation of the
        problem, copied from commit 62a26356 ("modpost: Fix modpost's
        license checking V3").  That commit fixed the problem for module
        object files, but not for vmlinux.o.  This patch fixes modpost for
        vmlinux.o. ]
      Signed-off-by: NFrank Rowand <frank.rowand@am.sony.com>
      Signed-off-by: NAlessio Igor Bogani <abogani@kernel.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      258f7426
  30. 27 3月, 2012 1 次提交
  31. 15 2月, 2012 1 次提交
  32. 07 11月, 2011 1 次提交
  33. 24 7月, 2011 1 次提交
    • A
      modpost: Fix modpost's license checking V3 · 62a26356
      Alessio Igor Bogani 提交于
      The commit f02e8a65 sorts symbols placing each of them in its own elf section.
      The sorting and merging into the canonical sections are done by the linker.
      Unfortunately modpost to generate Module.symvers file parses vmlinux
      (already linked) and all modules object files (which aren't linked yet).
      These aren't sanitized by the linker yet. That breaks modpost that can't
      detect license properly for modules. This patch makes modpost aware of
      the new exported symbols structure.
      
      Thanks to Arnaud Lacombe <lacombar@gmail.com> and Anders Kaseorg
      <andersk@ksplice.com> for providing useful suggestions about code.
      
      This work was supported by a hardware donation from the CE Linux Forum.
      Reported-by: NJan Beulich <jbeulich@novell.com>
      Signed-off-by: NAlessio Igor Bogani <abogani@kernel.org>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      62a26356