1833491 Members
3049 Online
110052 Solutions
New Discussion

kernel/driver build help

 
David Johns
Advisor

kernel/driver build help

Followed the directions in the DDG to update an interface driver for 11.11. Building the kernel gives me this warning: "Optimizing ADDILs in the presence of the debug information. Debug information may be corrupted (1594)"

Had no warnings compiling under 11.0.

Didn't see the debug flag in the makefiles.

Any idea what's going on? If this warning is accurate, there are debug symbols in either the driver or the kernel. How can I verify that I'm linking my code with a production kernel?
1 REPLY 1
CITEC HP TEAM
Frequent Advisor

Re: kernel/driver build help

HP support provided me with the following document. It does not appear in the knowledge base for some reason.

PROBLEM
On an HP-UX 11i 32-bit system, the following warning message occurs
during "mk_kernel":

# mk_kernel -s /stand/system
Compiling /stand/build/conf.c...
Loading the kernel...
(Warning) Optimizing ADDILs in the presence of the debug
information. Debug information may be corrupted (1594)
Generating kernel symbol table...

Please explain this message.

CONFIGURATION
Operating System - HP-UX
Version - 11.11
Hardware System - 9000
Series - H40

RESOLUTION
This is a normal 11i 32-bit mk_kernel innocuous message that can be ignored. There appears to be an issue with use of '+Ofastaccess' and the optimization levels used in the kernel builds that results in not only a warning message but also possible corrupted debug data. But, there technically is no fix to this issue. It turns out that any binary can cause 'ld' to emit the 'debug corruption' warning when performance and debug bits are intermingled. This mixture of performance and debug objects in a non-debug type kernel is normal and expected. The kernel, in this case, is ok, because it is expected that performance bits will be intermingled with a select number of cd /debug bits.

In other words, this is a warning that can be ignored.

NOTE: This warning does not appear on 64-bit 11i systems.