Re: NULL pointer dereference with pre 2.1.37-4

Richard Henderson (richard@stommel.tamu.edu)
Wed, 7 May 1997 08:39:52 -0500 (CDT)


> What version of "objcopy" are people using? The more I look at the panics
> with "Code: 00 00 00 00 ...", the more I feel that they are the result of
> the ".text.lock" segment of the kernel simply missing.

It is missing, but not because of objcopy:

> 0 .text 000c5a57 c0100000 c0100000 00001000 2**4
> CONTENTS, ALLOC, LOAD, READONLY, CODE
> 1 .text.lock 00001223 c01c5a57 c01c5a57 00101000 2**0
> CONTENTS, READONLY

.text.lock is not alloc'ed. Rember to use

.section .text.lock,"ax"

rather than just .text.lock.

r~