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
On Tuesday, September 25, 2012 2:06:51 PM UTC-4, Philip Muzzall wrote:
> I'm using Windows with TDM-GCC 4.6.1
> On Tuesday, September 25, 2012 9:20:47 AM UTC-7, Ian Seyler wrote:
>> Are you doing this on a Windows computer? Or in Linux?
>> -Ian
>> On Monday, September 24, 2012 7:52:41 PM UTC-4, Philip Muzzall wrote:
>>> 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"