Re: [patch 1/2] m68k: runtime patching infrastructure

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joerg Dorchain
Date: Wednesday, May 30, 2007 - 1:20 am

On Wed, May 30, 2007 at 09:06:08AM +0200, Geert Uytterhoeven wrote:
[...]

Pointers are (at least on m68k) of known size, so the compiler knows how
much space the struct occupies.

Type checking is by definition futile with void * pointer, but for all
other cases the compiler has all types and sizes it needs at this point.

The actual dereferencing of the symbol table is done by the linker,
which also knows all locations and sizes it needs.

Actually, this is the only way to define circular referencing
structures.

A one-pass-compiler-linker would run into problems.

Joerg, trying to recall compiler construction lessons
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 1/2] m68k: runtime patching infrastructure, Geert Uytterhoeven, (Mon May 28, 12:16 pm)
Re: [patch 1/2] m68k: runtime patching infrastructure, Andrew Morton, (Tue May 29, 5:38 pm)
Re: [patch 1/2] m68k: runtime patching infrastructure, Eric Dumazet, (Tue May 29, 10:48 pm)
Re: [patch 1/2] m68k: runtime patching infrastructure, Geert Uytterhoeven, (Wed May 30, 12:06 am)
Re: [patch 1/2] m68k: runtime patching infrastructure, Joerg Dorchain, (Wed May 30, 1:20 am)
Re: [patch 1/2] m68k: runtime patching infrastructure, Andreas Schwab, (Wed May 30, 1:23 am)
Re: [patch 1/2] m68k: runtime patching infrastructure, Geert Uytterhoeven, (Wed May 30, 4:19 am)
Re: [patch 1/2] m68k: runtime patching infrastructure, Joerg Dorchain, (Wed May 30, 4:40 am)
Re: [patch 1/2] m68k: runtime patching infrastructure, Linus Torvalds, (Wed May 30, 11:03 am)
Re: [patch 1/2] m68k: runtime patching infrastructure, Wouter Verhelst, (Sun Jun 3, 8:56 am)