* Re: Sourcery G++ 4.4-136 Release
[not found] ` <4BAC84F1.2070106@codesourcery.com>
@ 2010-03-27 14:07 ` Fabio Giovagnini
2010-04-01 7:19 ` Fabio Giovagnini
2010-04-01 7:36 ` Andrew Stubbs
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Giovagnini @ 2010-03-27 14:07 UTC (permalink / raw)
To: Andrew Stubbs; +Cc: uclinux-dev, linux-kernel, linux-sh
More results:
when I force elf32-shbig-fdpic in /arch/sh/Makefile I get linker warning and an
error; while if I leave elf32-shbib-linux I have only linker warning
sh-uclinux-ld: Warning: size of symbol `read_persistent_clock' changed from 24
in arch/sh/kernel/built-in.o to 16 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `hw_perf_enable' changed from 32 in
arch/sh/kernel/built-in.o to 10 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `hw_perf_event_setup' changed from 32
in arch/sh/kernel/built-in.o to 10 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `arch_probe_nr_irqs' changed from 28 in
arch/sh/kernel/built-in.o to 12 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `hw_perf_event_init' changed from 544
in arch/sh/kernel/built-in.o to 12 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `perf_callchain' changed from 140 in
arch/sh/kernel/built-in.o to 12 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `arch_dup_task_struct' changed from 120
in arch/sh/kernel/built-in.o to 28 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `hw_perf_disable' changed from 32 in
arch/sh/kernel/built-in.o to 10 in kernel/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_mremap' changed from 12 in
kernel/built-in.o to 108 in mm/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_signalfd4' changed from 12 in
kernel/built-in.o to 384 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_setup' changed from 12 in
kernel/built-in.o to 1036 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_cancel' changed from 12 in
kernel/built-in.o to 436 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_eventfd' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_create' changed from 12 in
kernel/built-in.o to 48 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_ioprio_set' changed from 12 in
kernel/built-in.o to 508 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_pwait' changed from 12 in
kernel/built-in.o to 296 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_ctl' changed from 12 in
kernel/built-in.o to 1052 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_wait' changed from 12 in
kernel/built-in.o to 756 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_add_watch' changed from 12
in kernel/built-in.o to 844 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_signalfd' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_eventfd2' changed from 12 in
kernel/built-in.o to 112 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_epoll_create1' changed from 12 in
kernel/built-in.o to 280 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_timerfd_settime' changed from 12
in kernel/built-in.o to 480 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_init' changed from 12 in
kernel/built-in.o to 24 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_init1' changed from 12 in
kernel/built-in.o to 344 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_submit' changed from 12 in
kernel/built-in.o to 1720 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_bdflush' changed from 12 in
kernel/built-in.o to 156 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_timerfd_create' changed from 12 in
kernel/built-in.o to 184 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_flock' changed from 12 in
kernel/built-in.o to 344 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_timerfd_gettime' changed from 12
in kernel/built-in.o to 360 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_inotify_rm_watch' changed from 12
in kernel/built-in.o to 188 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_ioprio_get' changed from 12 in
kernel/built-in.o to 648 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_getevents' changed from 12 in
kernel/built-in.o to 1100 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_io_destroy' changed from 12 in
kernel/built-in.o to 44 in fs/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgget' changed from 12 in
kernel/built-in.o to 80 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_mq_getsetattr' changed from 12 in
kernel/built-in.o to 360 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_mq_unlink' changed from 12 in
kernel/built-in.o to 360 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmdt' changed from 12 in
kernel/built-in.o to 160 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgrcv' changed from 12 in
kernel/built-in.o to 88 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_mq_open' changed from 12 in
kernel/built-in.o to 796 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semget' changed from 12 in
kernel/built-in.o to 112 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_mq_timedsend' changed from 12 in
kernel/built-in.o to 628 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semctl' changed from 12 in
kernel/built-in.o to 240 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_mq_notify' changed from 12 in
kernel/built-in.o to 688 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semtimedop' changed from 12 in
kernel/built-in.o to 1580 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmctl' changed from 12 in
kernel/built-in.o to 1260 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_mq_timedreceive' changed from 12
in kernel/built-in.o to 692 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgsnd' changed from 12 in
kernel/built-in.o to 72 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_semop' changed from 12 in
kernel/built-in.o to 24 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmat' changed from 12 in
kernel/built-in.o to 40 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_msgctl' changed from 12 in
kernel/built-in.o to 880 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shmget' changed from 12 in
kernel/built-in.o to 88 in ipc/built-in.o
sh-uclinux-ld: Warning: size of symbol `__div64_32' changed from 56 in
arch/sh/lib/lib.a(div64-generic.o) to 282 in lib/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_recv' changed from 12 in
kernel/built-in.o to 32 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_setsockopt' changed from 12 in
kernel/built-in.o to 216 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_recvfrom' changed from 12 in
kernel/built-in.o to 264 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_accept4' changed from 12 in
kernel/built-in.o to 352 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_socket' changed from 12 in
kernel/built-in.o to 116 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_socketcall' changed from 12 in
kernel/built-in.o to 640 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_listen' changed from 12 in
kernel/built-in.o to 168 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_recvmsg' changed from 12 in
kernel/built-in.o to 152 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_bind' changed from 12 in
kernel/built-in.o to 148 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_send' changed from 12 in
kernel/built-in.o to 32 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_accept' changed from 12 in
kernel/built-in.o to 24 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_sendto' changed from 12 in
kernel/built-in.o to 232 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_recvmmsg' changed from 12 in
kernel/built-in.o to 196 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_getsockname' changed from 12 in
kernel/built-in.o to 164 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_getsockopt' changed from 12 in
kernel/built-in.o to 180 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_shutdown' changed from 12 in
kernel/built-in.o to 132 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_sendmsg' changed from 12 in
kernel/built-in.o to 536 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_connect' changed from 12 in
kernel/built-in.o to 164 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_socketpair' changed from 12 in
kernel/built-in.o to 312 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_getpeername' changed from 12 in
kernel/built-in.o to 164 in net/built-in.o
What can I check more over?
Thanks a lot
In data venerdì 26 marzo 2010 10:57:05, Andrew Stubbs ha scritto:
: > Fabio,
>
> I hadn't noticed the problem because I've been using uImage.bin kernels
> (because they are compatible with the loader on my board).
>
> I have reproduced the problem, but I don't have a fix for it. I think
> the problem is that 'elf32-shbig-linux' should be 'elf32-sh-fdpic' in
> this case.
>
> BTW, I forgot to say, you'll need to enable the FDPIC binary loader, and
> it doesn't work without this patch:
>
> diff --git a/arch/sh/include/asm/elf.h b/arch/sh/include/asm/elf.h
> index ac04255..b2fefb3 100644
> --- a/arch/sh/include/asm/elf.h
> +++ b/arch/sh/include/asm/elf.h
> @@ -211,15 +211,17 @@ extern void __kernel_vsyscall;
>
> #define VSYSCALL_AUX_ENT \
> if (vdso_enabled) \
> - NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE);
> + NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE); \
> + else \
> + NEW_AUX_ENT(AT_IGNORE, 0); /* Match AT_VECTOR_SIZE_ARCH.
> */ #else
> -#define VSYSCALL_AUX_ENT
> +#define VSYSCALL_AUX_ENT NEW_AUX_ENT(AT_IGNORE, 0);
> #endif /* CONFIG_VSYSCALL */
>
> #ifdef CONFIG_SH_FPU
> #define FPU_AUX_ENT NEW_AUX_ENT(AT_FPUCW, FPSCR_INIT)
> #else
> -#define FPU_AUX_ENT
> +#define FPU_AUX_ENT NEW_AUX_ENT(AT_IGNORE, 0);
> #endif
>
> extern int l1i_cache_shape, l1d_cache_shape, l2_cache_shape;
>
> I've also submitted this to the kernel list.
>
> Hope that helps,
>
> Andrew
>
> On 26/03/10 05:59, Fabio Giovagnini wrote:
> > Hi, Andrew,
> >
> > I execueted:
> >
> > $(MAKE) -C $(LINUX_DIR) ARCH=sh CROSS_COMPILE=sh-uclinux- zImage
> >
> > and I get this error
> >
> > sh-uclinux-objcopy -O binary -R .note -R .note.gnu.build-id -R .comment
> > -R .stab -R .stabstr -S -R .empty_zero_page vmlinux
> > arch/sh/boot/compressed/vmlinux.bin
> >
> > (cat arch/sh/boot/compressed/vmlinux.bin | gzip -f -9 >
> > arch/sh/boot/compressed/vmlinux.bin.gz) || (rm -f
> > arch/sh/boot/compressed/vmlinux.bin.gz ; false)
> >
> > sh-uclinux-ld -EB -r --format binary --oformat elf32-shbig-linux -T
> > arch/sh/boot/compressed/vmlinux.scr
> > arch/sh/boot/compressed/vmlinux.bin.gz -o arch/sh/boot/compressed/piggy.o
> >
> > sh-uclinux-ld -EB --oformat elf32-shbig-linux -Ttext 0x0c800000 -e
> > startup -T arch/sh/boot/compressed/../../kernel/vmlinux.lds
> > arch/sh/boot/compressed/head_32.o arch/sh/boot/compressed/misc.o
> > arch/sh/boot/compressed/cache.o arch/sh/boot/compressed/piggy.o
> > /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-143/build/target/bin/../lib/g
> >cc/sh-uclinux/4.4.1/libgcc.a -o arch/sh/boot/compressed/vmlinux
> >
> > sh-uclinux-ld:
> > /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-143/build/target/bin/../lib/g
> >cc/sh-uclinux/4.4.1/libgcc.a(_ashiftlt.o): attempt to mix FDPIC and
> > non-FDPIC objects
> >
> > sh-uclinux-ld: failed to merge target specific data of file
> > /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-143/build/target/bin/../lib/g
> >cc/sh-uclinux/4.4.1/libgcc.a(_ashiftlt.o)
> >
> > sh-uclinux-ld:
> > /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-143/build/target/bin/../lib/g
> >cc/sh-uclinux/4.4.1/libgcc.a(_lshiftrt.o): attempt to mix FDPIC and
> > non-FDPIC objects
> >
> > sh-uclinux-ld: failed to merge target specific data of file
> > /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-143/build/target/bin/../lib/g
> >cc/sh-uclinux/4.4.1/libgcc.a(_lshiftrt.o)
> >
> > In data mercoledì 24 marzo 2010 17:39:59, Andrew Stubbs ha scritto:
> > : > On 24/03/10 05:32, Fabio Giovagnini wrote:
> > > > Could yuo give me the permission to enabling me for downloading
> > >
> > > Hi Fabio,
> > >
> > >
> > >
> > > I could not give you permission to see the page I linked. :(
> > >
> > >
> > >
> > > However, I have added the installer downloads to your
> > >
> > > support.codesourcery.com homepage. Log in and you should see them:
> > >
> > >
> > >
> > > renesas-4.4-141-sh-uclinux.bin
> > >
> > > renesas-4.4-141-sh-uclinux.exe
> > >
> > >
> > >
> > > Let me know if you need any sources.
> > >
> > >
> > >
> > > We plan to make the final release next month, so please let me know of
> > >
> > > any issues you encounter as soon as possible.
> > >
> > >
> > >
> > > Thanks
> > >
> > >
> > >
> > > Andrew
> >
> > --
> >
> > Fabio Giovagnini
> >
> > Aurion s.r.l.
> >
> > P.I e C.F.
> >
> > 00885711200
> >
> > Tel. +39.051.594.78.24
> >
> > Cell. +39.335.83.50.919
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sourcery G++ 4.4-136 Release
2010-03-27 14:07 ` Sourcery G++ 4.4-136 Release Fabio Giovagnini
@ 2010-04-01 7:19 ` Fabio Giovagnini
2010-04-01 7:36 ` Andrew Stubbs
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Giovagnini @ 2010-04-01 7:19 UTC (permalink / raw)
To: linux-sh
Hi Andrew, what are
sh-uclinux-ld: Warning: size of symbol `sys_connect' changed from 12 in
kernel/built-in.o to 164 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_socketpair' changed from 12 in
kernel/built-in.o to 312 in net/built-in.o
sh-uclinux-ld: Warning: size of symbol `sys_getpeername' changed from 12 in
kernel/built-in.o to 164 in net/built-in.o
Thanks
Cheers
In data martedì 23 marzo 2010 11:04:52, Andrew Stubbs ha scritto:
: > On 23/03/10 09:51, Fabio Giovagnini wrote:
> > I logged in once but I failed to downloading;
> > the second attempt to login and download failed; could I try later?
>
> I don't know of any reason why it would fail. I was just concerned that
> maybe you wouldn't have permission to see the page. Please do try again.
>
> > Really now I cannot spend the amount of money for buy the toolchain,
> > because this is a spto job I'm doing; if the work will be stable in the
> > future I'll think if buy a license and support. Now I have no horizont in
> > front opf me about this kinds of works.
>
> No problem, Renesas are paying for a free Lite edition, so you can use
> that. I only ask because we don't have a planned release date for the
> pay-for edition yet.
>
> Andrew
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Sourcery G++ 4.4-136 Release
2010-03-27 14:07 ` Sourcery G++ 4.4-136 Release Fabio Giovagnini
2010-04-01 7:19 ` Fabio Giovagnini
@ 2010-04-01 7:36 ` Andrew Stubbs
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Stubbs @ 2010-04-01 7:36 UTC (permalink / raw)
To: linux-sh
On 01/04/10 08:19, Fabio Giovagnini wrote:
> Hi Andrew, what are
> sh-uclinux-ld: Warning: size of symbol `sys_connect' changed from 12 in
> kernel/built-in.o to 164 in net/built-in.o
> sh-uclinux-ld: Warning: size of symbol `sys_socketpair' changed from 12 in
> kernel/built-in.o to 312 in net/built-in.o
> sh-uclinux-ld: Warning: size of symbol `sys_getpeername' changed from 12 in
> kernel/built-in.o to 164 in net/built-in.o
This means that some of the COMDAT sections did not match exactly when
the linker tried to unify them.
Basically, both the files have a copy of what is supposedly the exact
same code. The linker then chooses one, it doesn't matter which, and
discards the others. However, the linker first does a few sanity checks
to make sure they are the same, and in this case it has found that they
are not.
This can be caused in one of two ways:
1. The sections were compiled from different source code (with the same
name). This is a user mistake and results in undefined behaviour.
2. The same source was compiled with different optimization and/or other
compiler parameters. This is typically harmless.
The problem might be a latent bug in the kernel build system, or it
might be a toolchain bug. I don't know yet.
Either way, my kernel built with many of those warnings, but it seems to
run fine.
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-01 7:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <201003221942.o2MJgBRf028294@spugna.yepa.com>
[not found] ` <201003260659.57890.fabio.giovagnini@aurion-tech.com>
[not found] ` <4BAC84F1.2070106@codesourcery.com>
2010-03-27 14:07 ` Sourcery G++ 4.4-136 Release Fabio Giovagnini
2010-04-01 7:19 ` Fabio Giovagnini
2010-04-01 7:36 ` Andrew Stubbs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).