Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
G++ - Linker returns error about PE ops on non-PE format
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Philip Muzzall  
View profile  
 More options Sep 24 2012, 7:52 pm
From: Philip Muzzall <philipmuzz...@gmail.com>
Date: Mon, 24 Sep 2012 16:52:41 -0700 (PDT)
Local: Mon, Sep 24 2012 7:52 pm
Subject: G++ - Linker returns error about PE ops on non-PE format

Hello, pretty new to BMOS.

I'm trying to learn how to write and compile some C++ apps for BMOS, but
the g++ linker always gives me the error about trying to perform PE
operations on a non-PE format. Perhaps I'm missing a flag? Here's the
command line I'm using:

"g++ -m64 -nostdlib -nostartfiles -nodefaultlibs -fomit-frame-pointer
-mno-red-zone -o App.o App.cxx libBareMetal.c -Ttext=0x200000 -T app.ld"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Seyler  
View profile  
 More options Sep 25 2012, 12:20 pm
From: Ian Seyler <isey...@gmail.com>
Date: Tue, 25 Sep 2012 09:20:47 -0700 (PDT)
Local: Tues, Sep 25 2012 12:20 pm
Subject: Re: G++ - Linker returns error about PE ops on non-PE format

Are you doing this on a Windows computer? Or in Linux?

-Ian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philip Muzzall  
View profile  
 More options Sep 25 2012, 2:06 pm
From: Philip Muzzall <philipmuzz...@gmail.com>
Date: Tue, 25 Sep 2012 11:06:51 -0700 (PDT)
Local: Tues, Sep 25 2012 2:06 pm
Subject: Re: G++ - Linker returns error about PE ops on non-PE format

I'm using Windows with TDM-GCC 4.6.1


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Seyler  
View profile  
 More options Nov 6 2012, 2:05 pm
From: Ian Seyler <isey...@gmail.com>
Date: Tue, 6 Nov 2012 11:05:51 -0800 (PST)
Local: Tues, Nov 6 2012 2:05 pm
Subject: Re: G++ - Linker returns error about PE ops on non-PE format

I can't comment on C++ but I know the TDM-GCC compiler works with C.

Try something similar to this:

gcc -m64 -nostdlib -nostartfiles -nodefaultlibs -mno-red-zone -o hello.o hello.c libBareMetal.c -DBAREMETAL -Ttext=0x200000
objcopy -O binary hello.o hello.app


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »