Miao Qingjun | 4 Sep 2006 08:47

[2.6.18-rc6 UML]WARNING: vmlinux - Section mismatch: reference to .init.text:find_link from .got after '_GLOBAL_OFFSET_TABLE_' (at offset 0x82496b4)

Hi,

How this warning message is caused?

Thanks!

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Antoine Martin | 6 Sep 2006 22:11
Picon
Favicon

virtual framebuffer device visible on host

Just a thought, but how hard would it be to have a virtual device in the 
guests that mimics a framebuffer device and is in fact an X window on 
the host? I think this could almost be a killer-app.
Or is there already a way to do this using VFB?
Surely an X window is rich enough to provide all the primitives that a 
framebuffer device provides?

Antoine

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Geert Uytterhoeven | 6 Sep 2006 22:31

Re: virtual framebuffer device visible on host

On Wed, 6 Sep 2006, Antoine Martin wrote:
> Just a thought, but how hard would it be to have a virtual device in the 
> guests that mimics a framebuffer device and is in fact an X window on 
> the host? I think this could almost be a killer-app.
> Or is there already a way to do this using VFB?
> Surely an X window is rich enough to provide all the primitives that a 
> framebuffer device provides?

It's been done before (but not yet in mainline), cfr.
http://www.gatago.com/linux/kernel/6105868.html.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert <at> linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Antoine Martin | 7 Sep 2006 00:12
Picon
Favicon

Re: virtual framebuffer device visible on host

Geert,

Thanks for that, the patch is quite small and still applies without too 
much effort to 2.6.17 (a lot of the rejects are whitespace/no change)
Is there any reason not to merge this? Is it hackish or something?

I've only compile tested it here since it seems I can't run any guests 
kernels since I updated to gcc4.1.1/glibc2.4, but I will certainly 
revisit this code once mainline is fixed.

As I mentioned yesterday, older kernels die with:
"cannot set up thread-local storage: set_thread_area failed when setting 
up thread-local storage"
And newer (~ 2.6.16 onwards) fail even quicker on my desktop:
# ./kernel32-2.6.17.11-x11-fb ubd0=./FedoraCore5-x86-root_fs
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...missing
Checking for tmpfs mount on /dev/shm...nothing mounted on /dev/shm
Checking PROT_EXEC mmap in /tmp/...OK
Checking for the skas3 patch in the host:
   - /proc/mm...not found
   - PTRACE_FAULTINFO...not found
   - PTRACE_LDT...not found
UML running in SKAS0 mode
remove_umid_dir - actually_do_remove failed with err = -2

Geert Uytterhoeven wrote:
> On Wed, 6 Sep 2006, Antoine Martin wrote:
>> Just a thought, but how hard would it be to have a virtual device in the 
>> guests that mimics a framebuffer device and is in fact an X window on 
(Continue reading)

山村曜子 | 7 Sep 2006 11:06
Picon
Favicon

【全国SEX会】あなたへ参加状をお送りします。

代表の山村曜子と申します。

全国SEXを楽しむ会も順調に会員が増加いたしまして、また第8回目の
男性参加者を募ることとなりました。
趣旨はその名の通りで、あくまでも爽やかにスポーティになSEXとして、
あえてSEX会として活動しています。すべて女性主催運営で全国に拠点を
広げています。

そして、
条件検索にてあたりました方、限定にこの参加状をお送りしている次第です。

あなた様もそのお一人となりました。

  ------------------------------------------------------------
   ┌──┐。∵☆
   │\/│   セックスを楽しむ会 代表 山村曜子
  ------------------------------------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
i.r.wezeman | 9 Sep 2006 00:25
Picon

Re: Partial fix! - Was: Re: [BUG report] UML linux-2.6 latest BK doesn't compile

Hi there.

I got a error undefined reference to `__bb_init_func' when compiling uml with kernel 2.6.17.6, gcc 4.1.1 and glibc-2.4

Done: make clean && make distclean && make allmodconfig ARCH=um

# CONFIG_GPROF is not set
CONFIG_GCOV=y

#
# UML-specific options
#
# CONFIG_MODE_TT is not set
# CONFIG_STATIC_LINK is not set
CONFIG_MODE_SKAS=y


Build: make linux ARCH=um


edit file: uml/arch/um/os-Linux/sys-i386/registers.c

        err = ptrace(PTRACE_GETFPREGS, pid, 0, exec_fp_regs);
        if(err)
                panic("check_ptrace : PTRACE_GETFPREGS failed, errno = %d",
                      errno);
}

#ifndef JB_PC
#define JB_PC 5
#define JB_SP 4
#define JB_BP 3
#endif

void get_thread_regs(union uml_pt_regs *uml_regs, void *buffer)

Edit file: uml/arch/um/os-Linux/sys-x86_64/registers.c

                panic("check_ptrace : PTRACE_GETFPREGS failed, errno = %d",
                      errno);
}

#ifndef JB_PC
#define JB_PC 7
#define JB_RSP 6
#define JB_RBP 1
#endif

void get_thread_regs(union uml_pt_regs *uml_regs, void *buffer)
{
        struct __jmp_buf_tag *jmpbuf = buffer;

Ending:

arch/um/kernel/built-in.o:(__ksymtab+0x238): undefined reference to `__bb_init_func'
arch/um/os-Linux/built-in.o: In function `do_syscall_stub':
arch/um/os-Linux/skas/mem.c:63: undefined reference to `get_safe_registers'
arch/um/os-Linux/built-in.o: In function `copy_context_skas0':
arch/um/os-Linux/skas/process.c:333: undefined reference to `get_safe_registers'
collect2: ld returned 1 exit status
  KSYM    .tmp_kallsyms1.S
nm: '.tmp_vmlinux1': No such file
No valid symbol.
make: *** [.tmp_kallsyms1.S] Error 1

I see it must be solved. So wat is happend now?

Ron Wezeman

-----Original Message-----
From: linux-kernel-owner <at> vger.kernel.org on behalf of Blaisorblade
Sent: Sun 3/13/2005 9:06 PM
To: user-mode-linux-devel <at> lists.sourceforge.net
Cc: Jeff Dike; Anton Altaparmakov; lkml
Subject: Re: [uml-devel] Re: Partial fix! - Was: Re: [BUG report] UML linux-2.6 latest BK doesn't compile

Ok, I think I finally solved this problem.

A note for Jeff: I forgot to send this email and complained to you because you
didn't answer... Sorry Jeff.

However, I explained what I say here to him in chat and we agreed on the fix.

I'm sending this anyway... and I'm attaching the correct fix we discussed.

On Tuesday 08 March 2005 01:10, Jeff Dike wrote:
> blaisorblade <at> yahoo.it said:
> > a) wrong because you say __GNUC_PATCHLEVEL__ > 4 rather than >=

> Correct, this is now fixed.

> > b) wrong because for he the link failed on __bb_init_func at the
> > beginning. So  in the case you need to export BOTH symbols.

> Incorrect, the link failure was caused by trying to export __bb_init_func,
> which makes a reference to it, which was subsequently not being resolved.
No, the link failure was when linking the first object together in the final
file.

The symbol was referred to by the wrappers inserted by GCC for gprof /
gcov, not by the symbol exporting.

Quoting Anton:
> Yes.  I finally found a way to get it to compile.  Compiling without TT
> mode and WITHOUT static build it still fails with the same problem
> (__bb_init_func problem I already reported).  But compiling without TT
> but WITH static build the __bb_init_func problem goes away but instead I
> get a __gcov_init missing symbol in my modules.

And it was fixed when linking statically, as you see (because the symbol is
not defined in dynamic libraries - don't know if this is a bug of glibc, I
hope not).

What was needed was the addition of another EXPORT_SYMBOL, but it couldn't be
added for everybody because it causes the build to fail for old compilers
which don't export the symbol.

And "old compilers" include normal gcc 3.3.4 (I verified this on my Gentoo
system).

Also, maybe adding a dependency on static linking for GCOV is needed, maybe.

After some successful testing (maybe I didn't test all cases), however,
something strange happened: the build started failing because now GCC
requires the GCOV options (-fprofile-arcs -ftest-coverage) even during
linking (because the gcov helper functions are now in a separate library). I
said "strange" because the same build succeeded with gcc 3.3.4, and I didn't
understand the difference at first.

This required two changes:
- excluding the profiling options from the mk_* utilities.
- adding the GCOV options to linking (this is even documented now). I've
retested that this wasn't needed with gcc 3.3.4 (and I guess older ones).

Finally, I got an unresolved symbol on __bb_fork_func, and I wasn't able to
solve this (is it maybe a bug in libc or whatever? I don't know).
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Blaisorblade | 9 Sep 2006 11:31
Picon
Favicon

Re: Partial fix! - Was: Re: [BUG report] UML linux-2.6 latest BK doesn't compile

On Saturday 09 September 2006 00:25, i.r.wezeman <at> hetnet.nl wrote:
> Hi there.
> 
> I got a error undefined reference to `__bb_init_func' when
> compiling uml with kernel 2.6.17.6, gcc 4.1.1 and glibc-2.4

Ok, that's new. The below mail is about a very similar problem but with an 
older Gcc, and since these symbols are provided by gcc, this makes a 
difference.

Try removing from arch/um/kernel/gmon_syms.c these 2 lines:

extern void __bb_init_func(void *);
EXPORT_SYMBOL(__bb_init_func);

and recompiling. Better yet, try if adding the weak attribute like below fixes 
the problem:

extern void __bb_init_func(void *) __attribute__((weak));
EXPORT_SYMBOL(__bb_init_func);

Another possible thing to check is what happens with CONFIG_STATIC_LINK=y 
(edit it by hand and do not enable GPROF for now, that is yet another thing).

> Done: make clean && make distclean && make allmodconfig ARCH=um

> # CONFIG_GPROF is not set
> CONFIG_GCOV=y

This results from allmodconfig? Mmpf, that is not so nice (allmodconfig should 
not result in a debug kernel). Even if allmodconfig is not a _smart_ setting 
(set to y or m everything).

> #
> # UML-specific options
> #
> # CONFIG_MODE_TT is not set
> # CONFIG_STATIC_LINK is not set
> CONFIG_MODE_SKAS=y

> Build: make linux ARCH=um
> 
> 
> edit file: uml/arch/um/os-Linux/sys-i386/registers.c

> Ending:
> 
> arch/um/kernel/built-in.o:(__ksymtab+0x238): undefined reference to
> `__bb_init_func'
> arch/um/os-Linux/built-in.o: In function `do_syscall_stub':
> arch/um/os-Linux/skas/mem.c:63: undefined reference to
> `get_safe_registers'
> arch/um/os-Linux/built-in.o: In function `copy_context_skas0':
> arch/um/os-Linux/skas/process.c:333: undefined reference to
> `get_safe_registers'

Since it arrives to this point, get_safe_register should be undefined only 
because of the previous failure.

> I see it must be solved. So wat is happend now?
> 
> Ron Wezeman
--

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Blaisorblade | 9 Sep 2006 12:40
Picon
Favicon

Re: [2.6.18-rc6 UML]WARNING: vmlinux - Section mismatch: reference to .init.text:find_link from .got after '_GLOBAL_OFFSET_TABLE_' (at offset 0x82496b4)

On Monday 04 September 2006 08:47, Miao Qingjun wrote:
> Hi,
>
> How this warning message is caused?
This is an harmless warning which is spit out when dynamic linking is enabled 
(CONFIG_STATIC_LINKING disabled) - ignore it, the fix would be to whitelist 
this case in the checking.
--

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Blaisorblade | 9 Sep 2006 17:30
Picon
Favicon

Re: Partial fix! - Was: Re: [BUG report] UML linux-2.6 latest BK doesn't compile

On Saturday 09 September 2006 15:39, i.r.wezeman <at> hetnet.nl wrote:
> The 'Try removing' will not work.
In all these cases you get a message about `get_safe_registers', i.e. another 
error; do you get the error about __bb_init_func with the "try removing" 
thing?
Also, it should compile by disabling CONFIG_GCOV (as you know probably), and 
this option is only for debugging - if it does not compile in that case 
there's something _very_ strange going on (like if `get_safe_registers' had 
been removed by hand-editing); anyway this discussion is useful to find the 
fix to the bug.
> So have do the 'Better yet ' with make 
> clean, make distclean, make allmodconfig ARCH=um and make linux ARCH=um
>
> Now got the same error after 'Better yet':
>   CC      init/version.o
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
> arch/um/os-Linux/built-in.o: In function `do_syscall_stub':
> arch/um/os-Linux/skas/mem.c:63: undefined reference to `get_safe_registers'
> arch/um/os-Linux/built-in.o: In function `copy_context_skas0':
> arch/um/os-Linux/skas/process.c:333: undefined reference to
> `get_safe_registers' collect2: ld returned 1 exit status
>   KSYM    .tmp_kallsyms1.S
> nm: '.tmp_vmlinux1': No such file
> No valid symbol.
> make: *** [.tmp_kallsyms1.S] Error 1
>
> error, do: #CONFIG_MODE_TT=y
> make clean and make linux ARCH=um
>
> Now got the same error as with 'Better yet'
>
> error, do: CONFIG_STATIC_LINK=y
> make clean and make linux ARCH=um
>
> Same error as with 'Better yet'
>
> error, do: CONFIG_GPROF=y
> make clean and make linux ARCH=um
>
> Same error as with 'Better yet'
>
> TODO: get_safe_register should be undefined only
> because of the previous failure.
>
> In which to undefine?
No, don't undefine it. I was talking about this error message, which I can't 
explain - I thought it was just a conseguence of the error above.
> > arch/um/os-Linux/built-in.o: In function `do_syscall_stub':
> > arch/um/os-Linux/skas/mem.c:63: undefined reference to
> > `get_safe_registers'
> > arch/um/os-Linux/built-in.o: In function `copy_context_skas0':
> > arch/um/os-Linux/skas/process.c:333: undefined reference to
> > `get_safe_registers'
since get_safe_registers is defined in arch/um/os-Linux/sys-i386/registers.c, 
this error does not make a lot of sense. Make sure you haven't removed the 
definition by mistake - the other possibility is that file is not linked with 
the rest, but this would cause also other "undefined reference" errors.
--

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Jeff Dike | 11 Sep 2006 17:27

Re: Partial fix! - Was: Re: [BUG report] UML linux-2.6 latest BK doesn't compile

On Sat, Sep 09, 2006 at 11:31:36AM +0200, Blaisorblade wrote:
> On Saturday 09 September 2006 00:25, i.r.wezeman <at> hetnet.nl wrote:
> > Hi there.
> > 
> > I got a error undefined reference to `__bb_init_func' when
> > compiling uml with kernel 2.6.17.6, gcc 4.1.1 and glibc-2.4

Happens to me with -rc6.

> Try removing from arch/um/kernel/gmon_syms.c these 2 lines:
> 
> extern void __bb_init_func(void *);
> EXPORT_SYMBOL(__bb_init_func);

And this seems to fix it.

> Better yet, try if adding the weak attribute like below fixes 
> the problem:
> 
> extern void __bb_init_func(void *) __attribute__((weak));
> EXPORT_SYMBOL(__bb_init_func);

And this fixes it even better.

				Jeff

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane