Messages in this thread | | | Date | Wed, 25 Jul 2007 15:01:39 -0700 (PDT) | Subject | Re: [PATCH][RFC] getting rid of stupid loop in BUG() | From | David Miller <> |
| |
From: "H. Peter Anvin" <hpa@zytor.com> Date: Wed, 25 Jul 2007 13:37:00 -0700
> Another useful extension was a variant of __builtin_trap() which would > create a dummy ELF relocation for the trapping instruction with a target.
That would be very useful.
Another idea that has been tossed around is to build with dwarf2 debugging, scan a pre-linked kernel image for conditional trap instructions, and use the dwarf2 info to reconstruct the file and line number information into the table of BUG entries. Then perform the final link and strip the dwarf2 debugging info out. - 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/
| |