[Barrelfish-users] Still Getting Errors While Compiling

Baumann Andrew andrewb at inf.ethz.ch
Tue Mar 13 17:18:42 CET 2012


Hi all,

FWIW, I removed all the -section-start flags for x86_64, and it seems to work fine. We can probably do the same for x86_32 as well?

Andrew

-----Original Message-----
From: Mark Nevill [mailto:nevillm at ethz.ch] 
Sent: Monday, 12 March, 2012 23:10
To: Hamid Tahir
Cc: barrelfish-users at lists.inf.ethz.ch
Subject: Re: [Barrelfish-users] Still Getting Errors While Compiling

[Resend Ccing list]

Hi Hamid

The text section has grown so that depending on compilation
environment it may overflow into the data section with the current
compilation flags. A quickfix is to move the beginning of the text
section to a lower address:

--- a/hake/X86_32.hs
+++ b/hake/X86_32.hs
@@ -45,7 +45,7 @@ cxxFlags = ArchDefaults.commonCxxFlags

 cDefines = ArchDefaults.cDefines options

-ourLdFlags = [ Str "-Wl,-section-start,.text=0x400000",
+ourLdFlags = [ Str "-Wl,-section-start,.text=0x300000",
               Str "-Wl,-section-start,.data.rel.ro=0x600000",
               Str "-Wl,-z,max-page-size=0x1000",
               Str "-Wl,--build-id=none",


Regards,
Mark Nevill

On 13 March 2012 02:32, Hamid Tahir <gotohamed at gmail.com> wrote:
> Getting following output with error while compiling :(
>
> gcc -g -O2 ./x86_32/lib/crt0.o ./x86_32/lib/crtbegin.o -fno-builtin
> -nostdlib -Wl,-section-start,.text=0x400000
> -Wl,-section-start,.data.rel.ro=0x600000 -Wl,-z,max-page-size=0x1000
> -Wl,--build-id=none -m32 -o ./x86_32/sbin/skb
> ./x86_32/usr/skb/_for_app_skb/skb_main.o
> ./x86_32/usr/skb/_for_app_skb/skb_service.o
> ./x86_32/usr/skb/_for_app_skb/skb_flounder_bindings.o
> ./x86_32/lib/libeclipse.a ./x86_32/lib/libshm.a ./x86_32/lib/libdummies.a
> ./x86_32/lib/libicsolver.a ./x86_32/lib/libvfs.a ./x86_32/lib/libnfs.a
> ./x86_32/lib/libposixcompat.a ./x86_32/lib/liblwip.a
> ./x86_32/lib/libcontmng.a ./x86_32/lib/libprocon.a ./x86_32/lib/libvfsfd.a
> ./x86_32/lib/libtimer.a ./x86_32/lib/libhashtable.a
> ./x86_32/lib/libbarrelfish.a ./x86_32/errors/errno.o
> ./x86_32/lib/libnewlib.a ./x86_32/lib/crtend.o ./x86_32/lib/libcollections.a
> -lgcc
> /usr/bin/ld: section .ctors loaded at [0000000000600050,0000000000600057]
> overlaps section .data.rel.ro loaded at [0000000000600000,0000000000600c77]
> collect2: ld returned 1 exit status
> make: *** [x86_32/sbin/skb] Error 1
>
>
> --
> Regards,
>
> Hamid Ahmad
> Software Engineer,
> Digital Specks
>
>
> _______________________________________________
> Barrelfish-users mailing list
> Barrelfish-users at lists.inf.ethz.ch
> https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users
>

_______________________________________________
Barrelfish-users mailing list
Barrelfish-users at lists.inf.ethz.ch
https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users



More information about the Barrelfish-users mailing list