IPv4 NAT doesn't compile in 2.4.4

From: Russell King (rmk@arm.linux.org.uk)
Date: Sat Apr 28 2001 - 11:25:54 EST


net/network.o: In function `init_or_cleanup':
net/network.o(.text+0x4a530): relocation truncated to fit: R_ARM_PC24 ip_nat_cleanup

says it all.

ip_nat_standalone.c:

static int init_or_cleanup(int init)
{
...
 cleanup_nat:
        ip_nat_cleanup();
...
}

ip_nat_core:

void __exit ip_nat_cleanup(void)
{
        ip_ct_selective_cleanup(&clean_nat, NULL);
        ip_conntrack_destroyed = NULL;
}

*Don't* do this - its fundamentally wrong. Code in the kernel should _not_
reference code that has been removed by the linker.

--
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Apr 30 2001 - 21:00:20 EST