Re: 2.6.7-mm6

From: Russell King
Date: Tue Jul 06 2004 - 18:08:43 EST


On Tue, Jul 06, 2004 at 03:52:55PM -0700, William Lee Irwin III wrote:
> William Lee Irwin III <wli@xxxxxxxxxxxxxx> wrote:
> >>> Third, some naive check for undefined symbols failed to understand the
> >>> relocation types indicating that a given operand refers to some hard
> >>> register, which manifest as undefined symbols in ELF executables. A
> >>> patch to refine its criteria, which I used to build with, follows. rmk
> >>> and hpa have some other ideas on this undefined symbol issue I've not
> >>> quite had the opportunity to get a clear statement of yet.
>
> On Tue, 6 Jul 2004 15:34:17 -0700 Andrew Morton <akpm@xxxxxxxx> wrote:
> > > I converted that to a non-fatal warning due to the same problem on sparc64.
>
> On Tue, Jul 06, 2004 at 03:45:55PM -0700, David S. Miller wrote:
> > Andrew, Russell posted to us in private email an objdump based
> > check that didn't trigger for the register declaration case.
>
> He seems not to have cc:'d me. Apparently *UND* isn't always the fourth
> field so he did objdump --syms vmlinux | grep '^[^R][^E][^G].*\*UND\*'
> instead of the awk expression I brewed up.

Well, it seems it doesn't work for the .tmp_vmlinux1 object:

$ arm-linux-objdump --syms .tmp_vmlinux1 | egrep '^([^R]|R[^E]|RE[^G]).*\*UND\*'
00000000 w *UND* 00000000 kallsyms_addresses
00000000 w *UND* 00000000 kallsyms_num_syms
00000000 w *UND* 00000000 kallsyms_names
$ arm-linux-nm .tmp_vmlinux1 | grep kallsyms_names
w kallsyms_names

Seems we can't win either way. ;(

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/