Appllied the patch and tried to change manually elf32-shbig-fdpic
But I get the following


  sh-uclinux-ld  -EB -e _stext --defsym 'jiffies=jiffies_64+4' --oformat elf32-
shbig-fdpic --build-id -o .tmp_vmlinux1 -T arch/sh/kernel/vmlinux.lds 
arch/sh/kernel/init_task.o arch/sh/kernel/head_32.o  init/built-in.o --start-
group  usr/built-in.o  arch/sh/kernel/built-in.o  arch/sh/mm/built-in.o  
arch/sh/boards/built-in.o  arch/sh/boards/mach-rsk/built-in.o  kernel/built-
in.o  mm/built-in.o  fs/built-in.o  ipc/built-in.o  security/built-in.o  
crypto/built-in.o  block/built-in.o  arch/sh/lib/lib.a  lib/lib.a  
arch/sh/lib/built-in.o  lib/built-in.o  drivers/built-in.o  sound/built-in.o  
firmware/built-in.o  arch/sh/drivers/built-in.o  net/built-in.o --end-group 
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
sh-uclinux-ld: arch/sh/kernel/init_task.o: attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/kernel/init_task.o
sh-uclinux-ld: arch/sh/kernel/head_32.o: attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/kernel/head_32.o
sh-uclinux-ld: init/built-in.o: attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file init/built-in.o
sh-uclinux-ld: arch/sh/kernel/built-in.o: attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/kernel/built-in.o
sh-uclinux-ld: arch/sh/mm/built-in.o: attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file arch/sh/mm/built-
in.o
sh-uclinux-ld: arch/sh/boards/mach-rsk/built-in.o: attempt to mix FDPIC and 
non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file arch/sh/boards/mach-
rsk/built-in.o
sh-uclinux-ld: kernel/built-in.o: attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file kernel/built-in.o
sh-uclinux-ld: mm/built-in.o: attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file mm/built-in.o
sh-uclinux-ld: fs/built-in.o: attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file fs/built-in.o
sh-uclinux-ld: ipc/built-in.o: attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file ipc/built-in.o
sh-uclinux-ld: security/built-in.o: attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file security/built-in.o
sh-uclinux-ld: block/built-in.o: attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file block/built-in.o
sh-uclinux-ld: arch/sh/lib/lib.a(ashiftrt.o): attempt to mix FDPIC and non-
FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(ashiftrt.o)
sh-uclinux-ld: arch/sh/lib/lib.a(ashldi3.o): attempt to mix FDPIC and non-
FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(ashldi3.o)
sh-uclinux-ld: arch/sh/lib/lib.a(ashlsi3.o): attempt to mix FDPIC and non-
FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(ashlsi3.o)
sh-uclinux-ld: arch/sh/lib/lib.a(ashrdi3.o): attempt to mix FDPIC and non-
FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(ashrdi3.o)
sh-uclinux-ld: arch/sh/lib/lib.a(ashrsi3.o): attempt to mix FDPIC and non-
FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(ashrsi3.o)
sh-uclinux-ld: arch/sh/lib/lib.a(checksum.o): attempt to mix FDPIC and non-
FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(checksum.o)
sh-uclinux-ld: arch/sh/lib/lib.a(delay.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(delay.o)
sh-uclinux-ld: arch/sh/lib/lib.a(div64-generic.o): attempt to mix FDPIC and 
non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(div64-generic.o)
sh-uclinux-ld: arch/sh/lib/lib.a(div64.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(div64.o)
sh-uclinux-ld: arch/sh/lib/lib.a(lshrdi3.o): attempt to mix FDPIC and non-
FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(lshrdi3.o)
sh-uclinux-ld: arch/sh/lib/lib.a(lshrsi3.o): attempt to mix FDPIC and non-
FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(lshrsi3.o)
sh-uclinux-ld: arch/sh/lib/lib.a(memchr.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(memchr.o)
sh-uclinux-ld: arch/sh/lib/lib.a(memcpy.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(memcpy.o)
sh-uclinux-ld: arch/sh/lib/lib.a(memmove.o): attempt to mix FDPIC and non-
FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(memmove.o)
sh-uclinux-ld: arch/sh/lib/lib.a(memset.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(memset.o)
sh-uclinux-ld: arch/sh/lib/lib.a(movmem.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(movmem.o)
sh-uclinux-ld: arch/sh/lib/lib.a(strlen.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(strlen.o)
sh-uclinux-ld: arch/sh/lib/lib.a(udiv_qrnnd.o): attempt to mix FDPIC and non-
FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(udiv_qrnnd.o)
sh-uclinux-ld: arch/sh/lib/lib.a(udivsi3.o): attempt to mix FDPIC and non-
FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(udivsi3.o)
sh-uclinux-ld: arch/sh/lib/lib.a(udivsi3_i4i-Os.o): attempt to mix FDPIC and 
non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file 
arch/sh/lib/lib.a(udivsi3_i4i-Os.o)
sh-uclinux-ld: lib/lib.a(argv_split.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
lib/lib.a(argv_split.o)
sh-uclinux-ld: lib/lib.a(bug.o): attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(bug.o)
sh-uclinux-ld: lib/lib.a(cmdline.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(cmdline.o)
sh-uclinux-ld: lib/lib.a(ctype.o): attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(ctype.o)
sh-uclinux-ld: lib/lib.a(dec_and_lock.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
lib/lib.a(dec_and_lock.o)
sh-uclinux-ld: lib/lib.a(extable.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(extable.o)
sh-uclinux-ld: lib/lib.a(find_next_bit.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
lib/lib.a(find_next_bit.o)
sh-uclinux-ld: lib/lib.a(idr.o): attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(idr.o)
sh-uclinux-ld: lib/lib.a(int_sqrt.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
lib/lib.a(int_sqrt.o)
sh-uclinux-ld: lib/lib.a(irq_regs.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
lib/lib.a(irq_regs.o)
sh-uclinux-ld: lib/lib.a(kobject.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(kobject.o)
sh-uclinux-ld: lib/lib.a(kobject_uevent.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
lib/lib.a(kobject_uevent.o)
sh-uclinux-ld: lib/lib.a(kref.o): attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(kref.o)
sh-uclinux-ld: lib/lib.a(plist.o): attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(plist.o)
sh-uclinux-ld: lib/lib.a(prio_tree.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
lib/lib.a(prio_tree.o)
sh-uclinux-ld: lib/lib.a(proportions.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
lib/lib.a(proportions.o)
sh-uclinux-ld: lib/lib.a(radix-tree.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(radix-
tree.o)
sh-uclinux-ld: lib/lib.a(ratelimit.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
lib/lib.a(ratelimit.o)
sh-uclinux-ld: lib/lib.a(rbtree.o): attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(rbtree.o)
sh-uclinux-ld: lib/lib.a(rwsem-spinlock.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(rwsem-
spinlock.o)
sh-uclinux-ld: lib/lib.a(show_mem.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
lib/lib.a(show_mem.o)
sh-uclinux-ld: lib/lib.a(string.o): attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(string.o)
sh-uclinux-ld: lib/lib.a(vsprintf.o): attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file 
lib/lib.a(vsprintf.o)
sh-uclinux-ld: arch/sh/lib/built-in.o: attempt to mix FDPIC and non-FDPIC 
objects
sh-uclinux-ld: failed to merge target specific data of file arch/sh/lib/built-
in.o
sh-uclinux-ld: lib/built-in.o: attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file lib/built-in.o
sh-uclinux-ld: drivers/built-in.o: attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file drivers/built-in.o
sh-uclinux-ld: net/built-in.o: attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file net/built-in.o
sh-uclinux-ld: lib/lib.a(klist.o): attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(klist.o)
sh-uclinux-ld: lib/lib.a(sha1.o): attempt to mix FDPIC and non-FDPIC objects
sh-uclinux-ld: failed to merge target specific data of file lib/lib.a(sha1.o)
/bin/sh: riga 1: 19919 Segmentation fault      sh-uclinux-ld -EB -e _stext --
defsym 'jiffies=jiffies_64+4' --oformat elf32-shbig-fdpic --build-id -o 
.tmp_vmlinux1 -T arch/sh/kernel/vmlinux.lds arch/sh/kernel/init_task.o 
arch/sh/kernel/head_32.o init/built-in.o --start-group usr/built-in.o 
arch/sh/kernel/built-in.o arch/sh/mm/built-in.o arch/sh/boards/built-in.o 
arch/sh/boards/mach-rsk/built-in.o kernel/built-in.o mm/built-in.o fs/built-
in.o ipc/built-in.o security/built-in.o crypto/built-in.o block/built-in.o 
arch/sh/lib/lib.a lib/lib.a arch/sh/lib/built-in.o lib/built-in.o 
drivers/built-in.o sound/built-in.o firmware/built-in.o arch/sh/drivers/built-
in.o net/built-in.o --end-group





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
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to