Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Aug 2014 19:50:08 -0600
From:      Ian Lepore <ian@FreeBSD.org>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: Loading modules with KB920X panics
Message-ID:  <1407462608.56408.350.camel@revolution.hippie.lan>
In-Reply-To: <53E1E122.9040304@selasky.org>
References:  <53E1E122.9040304@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2014-08-06 at 10:02 +0200, Hans Petter Selasky wrote:
> Hi,
> 
> I'm building a custom module for KB920X and it panics when loading 
> because structures like Elf32_Rel and Elf32_Rela are not aligned.
> 
> I added __packed keyword and the errors seems to be going away.
> 
> Any clues what is wrong?
> 
> .ko file can be supplied.
> 
> FreeBSD-current
> 

We load .ko modules on our at91rm92 stuff at work (although I haven't
tested anything newer than 10.0 mid-last year).  

It seems odd that the reloc info would be unaligned.  The ldscript
should align the start of the section, and it should stay aligned after
that.

-- Ian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1407462608.56408.350.camel>