Date: Wed, 31 Jan 2018 14:12:42 -0800 From: Adrian Chadd <adrian@freebsd.org> To: Michael Zhilin <mizhka@gmail.com> Cc: Mori Hiroki <yamori813@yahoo.co.jp>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>, John Baldwin <jhb@freebsd.org> Subject: Re: kld not work on Atheros Message-ID: <CAJ-Vmonzu1%2BrxUkW2bL-7nUPyYeY6aHjP1vYPT8gBN7iTmu3dQ@mail.gmail.com> In-Reply-To: <CAJ-Vmon1vRjh276Fp50GWT8BcTv31EnXD4twkVYTkSH_BFL1yQ@mail.gmail.com> References: <87596.64393.qm@web101718.mail.ssk.yahoo.co.jp> <CAF19XBLK4jCUBpjAXoKd4sk4p4QzWRoxPzwv8BMr3_pdVu3-kg@mail.gmail.com> <CAJ-Vmon1vRjh276Fp50GWT8BcTv31EnXD4twkVYTkSH_BFL1yQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Bump - do I just put in an #ifdef MIPS around this workaround for now, or what's the cleaner solution? :) -a On 27 January 2018 at 22:47, Adrian Chadd <adrian@freebsd.org> wrote: > hi, > > yes; i did this: > > Index: sys/kern/link_elf_obj.c > =================================================================== > --- sys/kern/link_elf_obj.c (revision 328277) > +++ sys/kern/link_elf_obj.c (working copy) > @@ -1093,7 +1093,8 @@ > base = findbase(ef, ef->reltab[i].sec); > if (base == 0) { > link_elf_error(ef->lf.filename, "lost base for reltab"); > - return (ENOEXEC); > + //return (ENOEXEC); > + continue; > } > for ( ; rel < rellim; rel++) { > symidx = ELF_R_SYM(rel->r_info); > @@ -1461,7 +1462,8 @@ > base = findbase(ef, ef->reltab[i].sec); > if (base == 0) { > link_elf_error(ef->lf.filename, "lost base for reltab"); > - return (ENOEXEC); > + //return (ENOEXEC); > + continue; > } > for ( ; rel < rellim; rel++) { > symidx = ELF_R_SYM(rel->r_info); > @@ -1487,7 +1489,8 @@ > base = findbase(ef, ef->relatab[i].sec); > if (base == 0) { > link_elf_error(ef->lf.filename, "lost base for reltab"); > - return (ENOEXEC); > + //return (ENOEXEC); > + continue; > } > for ( ; rela < relalim; rela++) { > symidx = ELF_R_SYM(rela->r_info); > > > jhb - what should we do to fix this in the short term? > > > -a > > On 25 January 2018 at 02:02, Michael Zhilin <mizhka@gmail.com> wrote: >> Hi Hiroki-san, >> >> This topic discussed by adrian@ and jhb@ few days ago. >> Please use pre-r328101 revisions for a while. >> >> + Adrian and John in loop >> >> Thanks! >> >> On Thu, Jan 25, 2018 at 12:53 PM, Mori Hiroki <yamori813@yahoo.co.jp> wrote: >>> >>> hi >>> >>> I build current today. I can't use kld on AR9341(Big Endian). >>> >>> kldload: geom_md.ko: lost base for reltab >>> linker_load_file: /boot/kernel/geom_md.ko - unsupported file type >>> >>> Regards >>> >>> Hiroki Mori >>> _______________________________________________ >>> freebsd-mips@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-mips >>> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" >> >>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmonzu1%2BrxUkW2bL-7nUPyYeY6aHjP1vYPT8gBN7iTmu3dQ>