[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/4208] 'final link failed: Bad value' when building Linux M
From: |
hjl at lucon dot org |
Subject: |
[Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels. |
Date: |
20 Mar 2007 03:12:59 -0000 |
------- Additional Comments From hjl at lucon dot org 2007-03-20 03:12 -------
It is drivers/mtd/mtd_blkdevs.o. Should LO16 and HI16 relocations be in
pairs? Please provide drivers/mtd/mtd_blkdevs.i and drivers/mtd/mtd_blkdevs.s.
bash-3.1$ make
./ld --oformat elf32-tradlittlemips -r -o foo.o drivers/mtd/mtd_blkdevs.o
./ld: final link failed: Bad value
make: *** [foo.o] Error 1
bash-3.1$ readelf -r drivers/mtd/mtd_blkdevs.o
Relocation section '.rel.text' at offset 0x291c contains 220 entries:
Offset Info Type Sym.Value Sym. Name
00000020 00000305 R_MIPS_HI16 00000000 .data
00000024 00000306 R_MIPS_LO16 00000000 .data
00000030 00000305 R_MIPS_HI16 00000000 .data
00000034 00000306 R_MIPS_LO16 00000000 .data
00000140 00002704 R_MIPS_26 00000000 memset
00000198 00002804 R_MIPS_26 00000000 __copy_user
000001e4 00002a04 R_MIPS_26 00000000 __wake_up
000001f0 00002c05 R_MIPS_HI16 00000000 cpu_data
000001f8 00002c06 R_MIPS_LO16 00000000 cpu_data
00000224 00002d05 R_MIPS_HI16 00000000 mtd_table_mutex
00000228 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000230 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000268 00002a04 R_MIPS_26 00000000 __wake_up
00000274 00002e04 R_MIPS_26 00000000 wait_for_completion
000002b0 00000204 R_MIPS_26 00000000 .text
000002d8 00002f04 R_MIPS_26 00000000 blk_cleanup_queue
000002e4 00003004 R_MIPS_26 00000000 unregister_blkdev
00000300 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000308 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000324 00003104 R_MIPS_26 00000000 kfree
0000037c 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000384 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
000003ac 00000204 R_MIPS_26 00000000 .text
000003d0 00002d05 R_MIPS_HI16 00000000 mtd_table_mutex
000003d4 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
000003dc 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000404 00000204 R_MIPS_26 00000000 .text
0000040c 00003204 R_MIPS_26 00000000 __down
00000410 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000414 00000204 R_MIPS_26 00000000 .text
0000041c 00003304 R_MIPS_26 00000000 __up
00000420 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000424 00000204 R_MIPS_26 00000000 .text
0000044c 00000305 R_MIPS_HI16 00000000 .data
00000450 00000306 R_MIPS_LO16 00000000 .data
00000460 00000305 R_MIPS_HI16 00000000 .data
00000464 00000306 R_MIPS_LO16 00000000 .data
00000484 00000204 R_MIPS_26 00000000 .text
000004f4 00000204 R_MIPS_26 00000000 .text
00000540 00002c05 R_MIPS_HI16 00000000 cpu_data
00000544 00002c06 R_MIPS_LO16 00000000 cpu_data
000005b4 00002c05 R_MIPS_HI16 00000000 cpu_data
000005b8 00002c06 R_MIPS_LO16 00000000 cpu_data
000005fc 00002c05 R_MIPS_HI16 00000000 cpu_data
00000600 00002c06 R_MIPS_LO16 00000000 cpu_data
00000724 00000204 R_MIPS_26 00000000 .text
00000778 00000204 R_MIPS_26 00000000 .text
0000078c 00002c05 R_MIPS_HI16 00000000 cpu_data
00000790 00002c06 R_MIPS_LO16 00000000 cpu_data
000007b8 00000204 R_MIPS_26 00000000 .text
0000080c 00000204 R_MIPS_26 00000000 .text
00000814 00003404 R_MIPS_26 00000000 wake_up_process
0000081c 00000204 R_MIPS_26 00000000 .text
00000824 00003404 R_MIPS_26 00000000 wake_up_process
0000082c 00000204 R_MIPS_26 00000000 .text
00000834 00000204 R_MIPS_26 00000000 .text
0000083c 00000204 R_MIPS_26 00000000 .text
0000089c 00002c05 R_MIPS_HI16 00000000 cpu_data
000008a0 00002c06 R_MIPS_LO16 00000000 cpu_data
00000918 00002c05 R_MIPS_HI16 00000000 cpu_data
0000091c 00002c06 R_MIPS_LO16 00000000 cpu_data
000009b8 00000204 R_MIPS_26 00000000 .text
000009d4 00000204 R_MIPS_26 00000000 .text
000009dc 00003404 R_MIPS_26 00000000 wake_up_process
000009e4 00000204 R_MIPS_26 00000000 .text
000009ec 00003404 R_MIPS_26 00000000 wake_up_process
000009f4 00000204 R_MIPS_26 00000000 .text
00000a4c 00003504 R_MIPS_26 00000000 daemonize
00000a48 00001e05 R_MIPS_HI16 00000000 $LC0
00000a50 00001e06 R_MIPS_LO16 00000000 $LC0
00000a7c 00002704 R_MIPS_26 00000000 memset
00000a84 00003604 R_MIPS_26 00000000 recalc_sigpending
00000ab8 00002c05 R_MIPS_HI16 00000000 cpu_data
00000abc 00002c06 R_MIPS_LO16 00000000 cpu_data
00000adc 00003705 R_MIPS_HI16 00000000 default_wake_function
00000ae0 00003706 R_MIPS_LO16 00000000 default_wake_function
00000af0 00003804 R_MIPS_26 00000000 elv_next_request
00000b88 00001f05 R_MIPS_HI16 00000004 $LC1
00000b94 00000204 R_MIPS_26 00000000 .text
00000c24 00003904 R_MIPS_26 00000000 end_request
00000c50 00003a04 R_MIPS_26 00000000 complete_and_exit
00000ca4 00000204 R_MIPS_26 00000000 .text
00000cf8 00000204 R_MIPS_26 00000000 .text
00000d08 00003b04 R_MIPS_26 00000000 add_wait_queue
00000d2c 00003c04 R_MIPS_26 00000000 schedule
00000d3c 00003d04 R_MIPS_26 00000000 remove_wait_queue
00000d60 00000204 R_MIPS_26 00000000 .text
00000d7c 00000204 R_MIPS_26 00000000 .text
00000db0 00000204 R_MIPS_26 00000000 .text
00000db8 00000204 R_MIPS_26 00000000 .text
00000dc0 00003204 R_MIPS_26 00000000 __down
00000dc8 00000204 R_MIPS_26 00000000 .text
00000dd0 00003304 R_MIPS_26 00000000 __up
00000dd8 00000204 R_MIPS_26 00000000 .text
00000de4 00002c05 R_MIPS_HI16 00000000 cpu_data
00000df8 00002c06 R_MIPS_LO16 00000000 cpu_data
00000e14 00002d05 R_MIPS_HI16 00000000 mtd_table_mutex
00000e18 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000e28 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000e50 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000e58 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000e90 00000204 R_MIPS_26 00000000 .text
00000eec 00000204 R_MIPS_26 00000000 .text
00000f10 00002d05 R_MIPS_HI16 00000000 mtd_table_mutex
00000f14 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000f1c 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000f44 00000204 R_MIPS_26 00000000 .text
00000f68 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000f70 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00000fa0 00000204 R_MIPS_26 00000000 .text
00001008 00003f04 R_MIPS_26 00000000 alloc_disk
0000102c 00004005 R_MIPS_HI16 00000000 mtd_blktrans_ops
00001030 00004006 R_MIPS_LO16 00000000 mtd_blktrans_ops
0000105c 00002005 R_MIPS_HI16 0000001c $LC2
00001064 00002006 R_MIPS_LO16 0000001c $LC2
00001070 00004104 R_MIPS_26 00000000 snprintf
000010ac 00004204 R_MIPS_26 00000000 add_disk
000010f8 00000204 R_MIPS_26 00000000 .text
00001134 00002105 R_MIPS_HI16 00000024 $LC3
00001140 00002106 R_MIPS_LO16 00000024 $LC3
00001150 00004104 R_MIPS_26 00000000 snprintf
0000118c 00004304 R_MIPS_26 00000000 set_disk_ro
00001194 00000204 R_MIPS_26 00000000 .text
00001044 00002205 R_MIPS_HI16 0000002c $LC4
000011a4 00002206 R_MIPS_LO16 0000002c $LC4
000011b0 00004104 R_MIPS_26 00000000 snprintf
000011b8 00000204 R_MIPS_26 00000000 .text
000011e4 00000204 R_MIPS_26 00000000 .text
000011ec 00003304 R_MIPS_26 00000000 __up
000011f0 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
000011f8 00000204 R_MIPS_26 00000000 .text
00001228 00000204 R_MIPS_26 00000000 .text
00001234 00002c05 R_MIPS_HI16 00000000 cpu_data
0000123c 00002c06 R_MIPS_LO16 00000000 cpu_data
00001258 00002d05 R_MIPS_HI16 00000000 mtd_table_mutex
0000125c 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
0000126c 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001294 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
0000129c 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
000012e4 00004504 R_MIPS_26 00000000 del_gendisk
000012ec 00004604 R_MIPS_26 00000000 put_disk
00001324 00002d05 R_MIPS_HI16 00000000 mtd_table_mutex
00001328 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001330 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001358 00000204 R_MIPS_26 00000000 .text
0000137c 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001384 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
000013b4 00003304 R_MIPS_26 00000000 __up
000013b8 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
000013c0 00000204 R_MIPS_26 00000000 .text
000013cc 00000305 R_MIPS_HI16 00000000 .data
000013ec 00000306 R_MIPS_LO16 00000000 .data
000013fc 00004805 R_MIPS_HI16 00000000 malloc_sizes
000016c0 00004805 R_MIPS_HI16 00000000 malloc_sizes
00001400 00004806 R_MIPS_LO16 00000000 malloc_sizes
00001404 00004904 R_MIPS_26 00000000 kmem_cache_alloc
0000141c 00002704 R_MIPS_26 00000000 memset
00001424 00002c05 R_MIPS_HI16 00000000 cpu_data
00001428 00002c06 R_MIPS_LO16 00000000 cpu_data
00001440 00002d05 R_MIPS_HI16 00000000 mtd_table_mutex
00001444 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
0000144c 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
0000146c 00004a04 R_MIPS_26 00000000 register_blkdev
00001484 00002305 R_MIPS_HI16 00000034 $LC5
00001488 00002306 R_MIPS_LO16 00000034 $LC5
0000148c 00004b04 R_MIPS_26 00000000 printk
00001494 00003104 R_MIPS_26 00000000 kfree
000014b0 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
000014b8 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001518 00002d05 R_MIPS_HI16 00000000 mtd_table_mutex
0000151c 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001524 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
0000154c 00000204 R_MIPS_26 00000000 .text
0000156c 00000205 R_MIPS_HI16 00000000 .text
00001580 00000206 R_MIPS_LO16 00000000 .text
00001584 00004c04 R_MIPS_26 00000000 blk_init_queue
000015a0 00000205 R_MIPS_HI16 00000000 .text
000015a8 00000206 R_MIPS_LO16 00000000 .text
000015ac 00004d04 R_MIPS_26 00000000 kernel_thread
000015c0 00000305 R_MIPS_HI16 00000000 .data
000015c8 00000306 R_MIPS_LO16 00000000 .data
000015d0 00000306 R_MIPS_LO16 00000000 .data
000015e0 00000306 R_MIPS_LO16 00000000 .data
000015e4 00004e05 R_MIPS_HI16 00000000 mtd_table
000015f0 00004e06 R_MIPS_LO16 00000000 mtd_table
000015e8 00004e05 R_MIPS_HI16 00000000 mtd_table
000015f4 00004e06 R_MIPS_LO16 00000000 mtd_table
00001650 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001658 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001680 00000204 R_MIPS_26 00000000 .text
000016b4 00004f04 R_MIPS_26 00000000 register_mtd_user
000016bc 00000204 R_MIPS_26 00000000 .text
000016c8 00002f04 R_MIPS_26 00000000 blk_cleanup_queue
000016d4 00003004 R_MIPS_26 00000000 unregister_blkdev
000016dc 00003104 R_MIPS_26 00000000 kfree
000016f8 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001700 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
0000171c 00000204 R_MIPS_26 00000000 .text
00001724 00003304 R_MIPS_26 00000000 __up
00001728 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
0000172c 00000204 R_MIPS_26 00000000 .text
00001750 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001758 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001788 00000204 R_MIPS_26 00000000 .text
00001790 00003204 R_MIPS_26 00000000 __down
00001794 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001798 00000204 R_MIPS_26 00000000 .text
000017a0 00003304 R_MIPS_26 00000000 __up
000017a4 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
000017a8 00000204 R_MIPS_26 00000000 .text
000017b4 00003004 R_MIPS_26 00000000 unregister_blkdev
000017bc 00003104 R_MIPS_26 00000000 kfree
000017d8 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
000017e0 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
000017fc 00003304 R_MIPS_26 00000000 __up
00001800 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001804 00000204 R_MIPS_26 00000000 .text
00001828 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001830 00002d06 R_MIPS_LO16 00000000 mtd_table_mutex
00001858 00000204 R_MIPS_26 00000000 .text
Relocation section '.rel.data' at offset 0x2ffc contains 7 entries:
Offset Info Type Sym.Value Sym. Name
00000000 00000202 R_MIPS_32 00000000 .text
00000004 00000202 R_MIPS_32 00000000 .text
00000008 00000202 R_MIPS_32 00000000 .text
0000001c 00000202 R_MIPS_32 00000000 .text
00000020 00000202 R_MIPS_32 00000000 .text
0000002c 00000302 R_MIPS_32 00000000 .data
00000030 00000302 R_MIPS_32 00000000 .data
Relocation section '.rel.pdr' at offset 0x3034 contains 12 entries:
Offset Info Type Sym.Value Sym. Name
00000000 00000202 R_MIPS_32 00000000 .text
00000020 00000202 R_MIPS_32 00000000 .text
00000040 00000902 R_MIPS_32 00000000 .exit.text
00000060 00000202 R_MIPS_32 00000000 .text
00000080 00002b02 R_MIPS_32 000001ec deregister_mtd_blktran
000000a0 00000202 R_MIPS_32 00000000 .text
000000c0 00000202 R_MIPS_32 00000000 .text
000000e0 00000202 R_MIPS_32 00000000 .text
00000100 00000202 R_MIPS_32 00000000 .text
00000120 00003e02 R_MIPS_32 00000de0 add_mtd_blktrans_dev
00000140 00004402 R_MIPS_32 00001230 del_mtd_blktrans_dev
00000160 00004702 R_MIPS_32 000013c8 register_mtd_blktrans
Relocation section '.rel.exit.text' at offset 0x3094 contains 3 entries:
Offset Info Type Sym.Value Sym. Name
00000000 00000305 R_MIPS_HI16 00000000 .data
00000004 00000306 R_MIPS_LO16 00000000 .data
00000014 00002904 R_MIPS_26 00000000 unregister_mtd_user
Relocation section '.rel__ksymtab_gpl' at offset 0x30ac contains 8 entries:
Offset Info Type Sym.Value Sym. Name
00000000 00004402 R_MIPS_32 00001230 del_mtd_blktrans_dev
00000004 00001d02 R_MIPS_32 00000000 __ksymtab_strings
00000008 00003e02 R_MIPS_32 00000de0 add_mtd_blktrans_dev
0000000c 00001d02 R_MIPS_32 00000000 __ksymtab_strings
00000010 00002b02 R_MIPS_32 000001ec deregister_mtd_blktran
00000014 00001d02 R_MIPS_32 00000000 __ksymtab_strings
00000018 00004702 R_MIPS_32 000013c8 register_mtd_blktrans
0000001c 00001d02 R_MIPS_32 00000000 __ksymtab_strings
Relocation section '.rel.exitcall.exit' at offset 0x30ec contains 1 entries:
Offset Info Type Sym.Value Sym. Name
00000000 00000902 R_MIPS_32 00000000 .exit.text
bash-3.1$
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4208
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/4208] New: 'final link failed: Bad value' when building Linux MIPS kernels., sjhill at realitydiluted dot com, 2007/03/17
- [Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels., hjl at lucon dot org, 2007/03/17
- [Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels., sjhill at realitydiluted dot com, 2007/03/19
- [Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels., sjhill at realitydiluted dot com, 2007/03/19
- [Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels., hjl at lucon dot org, 2007/03/19
- [Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels., sjhill at realitydiluted dot com, 2007/03/19
- [Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels.,
hjl at lucon dot org <=
- [Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels., hjl at lucon dot org, 2007/03/19
- [Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels., hjl at lucon dot org, 2007/03/20
- [Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels., ths at networkno dot de, 2007/03/20
- [Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels., ths at networkno dot de, 2007/03/20
- [Bug binutils/4208] 'final link failed: Bad value' when building Linux MIPS kernels., pkoning at equallogic dot com, 2007/03/20
- [Bug binutils/4208] Linker and assembler don't agree on unmachted HI16 relocation, hjl at lucon dot org, 2007/03/20
- [Bug binutils/4208] Linker and assembler don't agree on unmachted HI16 relocation, ths at networkno dot de, 2007/03/20