Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: reference_discarded addition

Error: ./fs/quota_v2.o .opd refers to 0000000000000020 R_PPC64_ADDR64 .exit.text

Been carrying this for some time in Red Hat trees.

Keith Ownes <kaos@sgi.com> commented:
For our future {in}sanity, add a comment that this is the ppc .opd
section, not the ia64 .opd section. ia64 .opd should not point to
discarded sections.

Any idea why ppc .opd points to discarded sections when ia64 does not?
AFAICT no ia64 object has a useful .opd section, they are all empty or
(sometimes) a dummy entry which is 1 byte long. ia64 .opd data is
built at link time, not compile time.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

authored by

Dave Jones and committed by
Sam Ravnborg
442ce844 50aa88e2

+6
+6
scripts/reference_discarded.pl
··· 71 71 # printf("ignoring %d conglomerate(s)\n", $ignore); 72 72 73 73 # printf("Scanning objects\n"); 74 + 75 + # Keith Ownes <kaos@sgi.com> commented: 76 + # For our future {in}sanity, add a comment that this is the ppc .opd 77 + # section, not the ia64 .opd section. 78 + # ia64 .opd should not point to discarded sections. 74 79 $errorcount = 0; 75 80 foreach $object (keys(%object)) { 76 81 my $from; ··· 93 88 ($from !~ /\.text\.exit$/ && 94 89 $from !~ /\.exit\.text$/ && 95 90 $from !~ /\.data\.exit$/ && 91 + $from !~ /\.opd$/ && 96 92 $from !~ /\.exit\.data$/ && 97 93 $from !~ /\.altinstructions$/ && 98 94 $from !~ /\.pdr$/ &&