Re: [PATCH] module: set ksymtab/kcrctab* section addresses to 0x0

2015-01-27 Thread Rabin Vincent
On Tue, Jan 27, 2015 at 10:20:32AM +1030, Rusty Russell wrote: > Rabin Vincent writes: > > These __ksymtab*/__kcrctab* sections currently have non-zero addresses. > > Non-zero section addresses in a relocatable ELF confuse GDB and it ends > > up not relocating all symbols when add-symbol-file is u

Re: [PATCH] module: set ksymtab/kcrctab* section addresses to 0x0

2015-01-26 Thread Rusty Russell
Rabin Vincent writes: > These __ksymtab*/__kcrctab* sections currently have non-zero addresses. > Non-zero section addresses in a relocatable ELF confuse GDB and it ends > up not relocating all symbols when add-symbol-file is used on modules > which have exports. The kernel's module loader does n

[PATCH] module: set ksymtab/kcrctab* section addresses to 0x0

2015-01-26 Thread Rabin Vincent
These __ksymtab*/__kcrctab* sections currently have non-zero addresses. Non-zero section addresses in a relocatable ELF confuse GDB and it ends up not relocating all symbols when add-symbol-file is used on modules which have exports. The kernel's module loader does not care about these addresses,