Messages in this thread | | | From | Lars Heete <> | Subject | Re: ICMP in 2.2.9 (was 3c575) | Date | Fri, 11 Jun 1999 18:32:39 +0200 |
| |
Hello, On Fri, 11 Jun 1999 15:42:42, Alan Cox wrote: >> at egcs, I would say. Kernels up to 2.2.9 compiled with gcc 2.7.2.3 on >> RH52 worked fine on the same system after its upgrading to RH60. My first >> 2.2.9 kernel compiled on RH60 refused to load ide-cd module. The other day >> egcs produced a working ide-cd. > >The only known egcs-1.1.2 kernel problems where sparc, and are fixed in the >errata. Im not sure right now if the ping bug is egcs or ping relying on a >gcc quirk
It is a bug in egcs-1.1.* on little endian targets, that miscompiles partial assignments to variables (e.g "int var =0xff00; *((char*)&var) = 0xff;" gives 0xff not 0xffff). This bug is triggered very seldom in normal programs, the only one I know of, beside ping, is dhcpcd which uses the same in_chcksum function.
I have a patch for egcs-1.1.2, that works well for my x86 Target, but may not work for other architectures. In the new egcs-2.95 this bug should be fixed.
[http://www.admin.de/~hel/egcs-1.1.2-function.c.patch]
Lars Heete
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |