diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mod/modpost.c | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 113dc77b9f60..2fcdbc7a1ee5 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -885,29 +885,28 @@ static void warn_sec_mismatch(const char *modname, const char *fromsec, | |||
885 | return; | 885 | return; |
886 | 886 | ||
887 | if (before && after) { | 887 | if (before && after) { |
888 | warn("%s - Section mismatch: reference to %s:%s from %s " | 888 | warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s " |
889 | "between '%s' (at offset 0x%llx) and '%s'\n", | 889 | "(between '%s' and '%s')\n", |
890 | modname, secname, refsymname, fromsec, | 890 | modname, fromsec, (unsigned long long)r.r_offset, |
891 | secname, refsymname, | ||
891 | elf->strtab + before->st_name, | 892 | elf->strtab + before->st_name, |
892 | (long long)r.r_offset, | ||
893 | elf->strtab + after->st_name); | 893 | elf->strtab + after->st_name); |
894 | } else if (before) { | 894 | } else if (before) { |
895 | warn("%s - Section mismatch: reference to %s:%s from %s " | 895 | warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s " |
896 | "after '%s' (at offset 0x%llx)\n", | 896 | "(after '%s')\n", |
897 | modname, secname, refsymname, fromsec, | 897 | modname, fromsec, (unsigned long long)r.r_offset, |
898 | elf->strtab + before->st_name, | 898 | secname, refsymname, |
899 | (long long)r.r_offset); | 899 | elf->strtab + before->st_name); |
900 | } else if (after) { | 900 | } else if (after) { |
901 | warn("%s - Section mismatch: reference to %s:%s from %s " | 901 | warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s " |
902 | "before '%s' (at offset -0x%llx)\n", | 902 | "before '%s' (at offset -0x%llx)\n", |
903 | modname, secname, refsymname, fromsec, | 903 | modname, fromsec, (unsigned long long)r.r_offset, |
904 | elf->strtab + after->st_name, | 904 | secname, refsymname, |
905 | (long long)r.r_offset); | 905 | elf->strtab + after->st_name); |
906 | } else { | 906 | } else { |
907 | warn("%s - Section mismatch: reference to %s:%s from %s " | 907 | warn("%s(%s+0x%llx): Section mismatch: reference to %s:%s\n", |
908 | "(offset 0x%llx)\n", | 908 | modname, fromsec, (unsigned long long)r.r_offset, |
909 | modname, secname, fromsec, refsymname, | 909 | secname, refsymname); |
910 | (long long)r.r_offset); | ||
911 | } | 910 | } |
912 | } | 911 | } |
913 | 912 | ||