Hi all, My .text. section is more then 32K. I use text_64k linker script to resolve 32K limit. All worked fine before.
But now I get next linker error: ...Linking... m68k-palmos-gcc -o Debug/PalmOrder Debug/CpoModel.o Debug/CpoView.o Debug/CpoViewFuncs.o Debug/CpoController.o Debug/CpoControllerFuncs.o Debug/CpoTemplate.o Debug/CpoFrameModel.o Debug/CpoFrameController.o Debug/CpoFrame.o Debug/CValueList.o Debug/CpoControl.o Debug/CField.o Debug/CFormMenu.o Debug/CControlListener.o Debug/CButton.o Debug/CStatic.o Debug/CPushButton.o Debug/CCheckbox.o Debug/draw.o Debug/CScrollBarCtrl.o Debug/CBitmap.o Debug/CDateTimeCtl.o Debug/CComboBox.o Debug/CGrid.o Debug/CElDbSelectGrid.o Debug/CESGridAttrs.o Debug/CListCtl.o Debug/CSimpleFormCtl.o Debug/CESGridAttrsDlg.o Debug/CConfigurationsDlg.o Debug/CWelcomeDlg.o Debug/CDiscountDlg.o Debug/CPrintTemplate.o Debug/CDocumentModel.o Debug/CDocumentController.o Debug/CDocumentFuncs.o Debug/CDocumentView.o Debug/CDocument2.o Debug/CDocumentModelFuncs.o Debug/OtherHelpers.o Debug/CJournalModel.o Debug/CJournalView.o Debug/CJournalController.o Debug/CJournal.o Debug/CDocumentPKO.o Debug/CReferenceModel.o Debug/CReferenceC/usr/m68k-palmos/lib/libcrt.a(multi_dreloc.o)(.text+0xe): In function `_GccLoadCodeAndRelocateData': dreloc.c:56: relocation truncated to fit: DISP16 start collect2: ld returned 1 exit status make: *** [Debug/PalmOrder] Error 1 ontroller.o Debug/CReferenceFuncs.o Debug/CReference.o Debug/CReferenceProducts.o Debug/CConfiguration.o Debug/EntryTypesHelper.o Debug/LayoutTypesHelper.o Debug/CMetadataContainer.o Debug/CLanguage.o Debug/CRepeatedFields.o Debug/CEnvironment.o Debug/CFuncExecutor.o Debug/Globals.o Debug/main.o Debug/frmCountCalcID.o Debug/frmProID.o Debug/Idea.o Debug/CFrameItem.o Debug/AutoTest.o multiple_code_sections.o multiple_code_sections.ld -g -lElDb -L../ElDb.lib/Debug -lElDbHelpers -L../ElDbHelpers.lib/Debug -lCPrint -L../CPrint.lib/Debug -lCConfiguration -L../CConfiguration.lib/Debug -lPalmOSGlue-debug -Xlinker -M=./Debug/test.map -T text_64k_palmos3 In some stuff I found that problem is with 16-bit relative addressing. And one way out is to manually arrange object files in such a way that no routine called is more than 32k away from the callee. How can I do it? How to find right sequence of object files? Or maybe other ways are present? Thanks. Sasha Trukhny. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
