> 
> On Sep 22, 2008, at 7:56 AM, Frédéric DUBOIS wrote:
> > The bigger one either won't pass the compilation step or won't run:
> > * if I append the -msep-data flag, the program can be built.  
> > However when I run it, I get "BINFMT_FLAT: reloc outside program"  
> > errors, followed by a SIGSEGV
> > * if I don't use that switch, the compiler issues a " text=0x85c20  
> > overlaps data=0x0" error.
> 
> What does flthdr tell you about the target file (built both ways) ?
> 

In the latter case, there's no binary file to be fed to flthdr (more precisely 
m68k-uclinux-flthdr), and it refuses to process the .elf or .gdb files I only 
get.

In the former case, I get:
Magic:          bFLT
Rev:                    4
Build Date:             Tue Sep 23 11:02:46 2008
Entry:          0x48
Data Start:             0x92f80
Data End:               0xa3f10
Stack Size:             0x8000
Reloc Start:    0xa3f10
Reloc Count:    0x218
Flags:          0x2 ( Has-PIC-GOT )

It HAS-PIC-GOT, and that's why I've got a headache I guess.

Meanwhile, I tried to compile variations of a simple "hello world" program:
- in pure C: ok.
- using g++ but using no C++ feature (no class, no object): ok.
- using g++ with C++ features (i.e. declaring a class and instanciating an 
object): "text + data overlaps bss" error

 Regards.

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to