Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Error: L6265E: Non-RWPI Section libspace.o(.bss) cannot be assigned to PI Exec region ER_ZI.
Error: L6248E: libspace.o(.text) in PI region 'ER_RO' cannot have address type relocation to __libspace_start in PI region 'ER_ZI'.
Finished: 0 information, 0 warning and 2 error messages.
NMAKE : fatal error U1077: 'D:\ARM\ADSv1_2\bin\armlink' : return code '0x1'
Stop.

the source was got from www.developer.com , i write a make file for it.(see attach file)
but comiled with above error.

someone can help me, i will be very glad!!!

Please do not cross-post. Posting here, once, is enough.
I think the link options are incorrect in your makefile:
LFLAGS = $(ROPILINK) -rwpi -ro-base 0 -entry AEEMod_Load

Please do not cross-post. Posting here, once, is enough.
I think the link options are incorrect in your makefile:
LFLAGS = $(ROPILINK) -rwpi -ro-base 0 -entry AEEMod_Load

Tom is correct. I wrote that example and I can assure you that it builds flawlessly in both Visual Studio 6 and ADS 1.2. Look at the makefile example you have and compare to your makefile for ShapeApp. The things you are missing are obvious.
Regards,
Murray

Tom is correct. I wrote that example and I can assure you that it builds flawlessly in both Visual Studio 6 and ADS 1.2. Look at the makefile example you have and compare to your makefile for ShapeApp. The things you are missing are obvious.
Regards,
Murray

hi, thank you all.
but the make file i wrote is based on the eamples in brew2.1 sdk. the "example_make_common.min" is copied from the Examples directory of the SDK2.1.
i'm a beginer of arm compiler. i'm really sorry that i do not understand the LFLAGS's meanig, and also could not find the flaw:(
BTW, i wrote the brew apps for a period of time using C, not C++. and compile my previous app the same way, -- they are all OK. but this time ....
i am really bewildered, i need some help, thanks anyway!

hi, thank you all.
but the make file i wrote is based on the eamples in brew2.1 sdk. the "example_make_common.min" is copied from the Examples directory of the SDK2.1.
i'm a beginer of arm compiler. i'm really sorry that i do not understand the LFLAGS's meanig, and also could not find the flaw:(
BTW, i wrote the brew apps for a period of time using C, not C++. and compile my previous app the same way, -- they are all OK. but this time ....
i am really bewildered, i need some help, thanks anyway!

This is what the makefile does when linking:
LINK_CMD = -o
ROPILINK = -ropi
LFLAGS = $(ROPILINK) -rwpi -ro-base 0 -entry AEEMod_Load
LINK_ORDER = -first AEEMod_Load
$(LD) $(LINK_CMD) $(TARGET).$(EXETYPE) $(LFLAGS) $(APP_OBJS) $(CLIB) $(MYLIBS) $(LINK_ORDER)Just try to remove the red stuff and see if that works.
--t

This is what the makefile does when linking:
LINK_CMD = -o
ROPILINK = -ropi
LFLAGS = $(ROPILINK) -rwpi -ro-base 0 -entry AEEMod_Load
LINK_ORDER = -first AEEMod_Load
$(LD) $(LINK_CMD) $(TARGET).$(EXETYPE) $(LFLAGS) $(APP_OBJS) $(CLIB) $(MYLIBS) $(LINK_ORDER)Just try to remove the red stuff and see if that works.
--t

hi, tom. remove the red staff really works, but with a warning -- "Warning: L6305W: Image does not have an entry point. (Not specified or not set due to multiple choices.)"
then i tried, as follows:
LFLAGS = $(ROPILINK) -entry AEEMod_Load ------- OK
LFLAGS = $(ROPILINK) -rwpi -entry AEEMod_Load ------- ERROR! (as before)
LFLAGS = $(ROPILINK) -ro-base 0 -entry AEEMod_Load ------- OK
I want to know that:
1. what does the red staff stand for?
2. why they cannot be added, when compiling brew with C++ ??
:cool: thanx

hi, tom. remove the red staff really works, but with a warning -- "Warning: L6305W: Image does not have an entry point. (Not specified or not set due to multiple choices.)"
then i tried, as follows:
LFLAGS = $(ROPILINK) -entry AEEMod_Load ------- OK
LFLAGS = $(ROPILINK) -rwpi -entry AEEMod_Load ------- ERROR! (as before)
LFLAGS = $(ROPILINK) -ro-base 0 -entry AEEMod_Load ------- OK
I want to know that:
1. what does the red staff stand for?
2. why they cannot be added, when compiling brew with C++ ??
:cool: thanx

Ignore the warning about the entry point. BREW provides the entry point. Use -first AEEModLoad.

Ignore the warning about the entry point. BREW provides the entry point. Use -first AEEModLoad.