[#6658] Build uClinux-dist FDPIC binary format by GCC 4.5 get LINKER BUG: .rofixup section size mismatch

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6658] Build uClinux-dist FDPIC binary format by GCC 4.5 get LINKER BUG: .rofixup section size mismatch

Submitted By: Sonic Zhang

Open Date

2011-06-22 02:22:12     Close Date

2012-03-12 11:49:01

Priority:

Medium     Assignee:

Sonic Zhang

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

Duplicate     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Closed     Found In Release:

2011R1

Is this bug repeatable?:

yes     

Summary: Build uClinux-dist FDPIC binary format by GCC 4.5 get LINKER BUG: .rofixup section size mismatch

Details:

 

SVN trunk uClinux-dist from external repository.

GCC 4.5 from internal repository.

 

 

bfin-linux-uclibc-gcc ../obj_s/tic.o ../obj_s/dump_entry.o -mcpu=bf537-0.2 -I../progs -I/home/sonic/projects/uClinux-dist/lib/ncurses/ncurses-5.7/progs -DHAVE_CONFIG_H -I/home/sonic/projects/uClinux-dist/lib/ncurses/ncurses-5.7/progs/../include -I. -I../include -DEMBED -D__uClinux__ -I/home/sonic/projects/uClinux-dist  -mcpu=bf537-0.2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DNDEBUG -pipe -Wall -g -O2      -mcpu=bf537-0.2  --param max-inline-insns-single=1200 -fPIC  -L../lib -lncurses -L../lib -lncurses    -o tic

../obj_s/tic.o: In function `open_tempfile':

/home/sonic/projects/uClinux-dist/lib/ncurses/ncurses-5.7/progs/tic.c:461: warning: the use of `tmpnam' is dangerous, better use `mkstemp'

/opt/uclinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.5.2/../../../../bfin-linux-uclibc/bin/ld: LINKER BUG: .rofixup section size mismatch

/opt/uclinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.5.2/../../../../bfin-linux-uclibc/bin/ld: final link failed: Nonrepresentable section on output

collect2: ld returned 1 exit status

make[7]: *** [tic] Error 1

make[7]: Leaving directory `/home/sonic/projects/uClinux-dist/lib/ncurses/build-ncurses-5.7/progs'

make[6]: *** [install] Error 2

make[6]: Leaving directory `/home/sonic/projects/uClinux-dist/lib/ncurses/build-ncurses-5.7'

make[5]: *** [all] Error 2

make[5]: Leaving directory `/home/sonic/projects/uClinux-dist/lib/ncurses'

 

Follow-ups

 

--- Stuart Henderson                                         2011-06-22 09:29:18

I've just done a clean build of the 4.5 toolchain and then a clean build of the

uclinux-dist (both latest trunk) and not hit this error.  is it possible your

toolchain repo needs updated?

 

if not, can you provide some more info on exactly what you do to reproduce

this?

 

--- Sonic Zhang                                              2011-06-22 23:00:01

Did you configure the binary format into FDPIC? My 4.5 toolchain is build from

dxxx-trunk, with the MPC patch other than the trunk.

 

--- Stuart Henderson                                         2011-09-20 10:17:54

to my knowledge, this is building now.  can you confirm?

 

--- Stuart Henderson                                         2012-03-12 12:32:04

Closing this as a duplicate of [#6798].  I don't believe it occurs during the

kernel build any more anyway.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes