This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ld error: "Not enough room for program headers (allocated 3, need 4)"
- To: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Subject: ld error: "Not enough room for program headers (allocated 3, need 4)"
- From: Kammerloher Josef <Josef dot Kammerloher at softlab dot de>
- Date: Thu, 25 May 2000 08:42:18 +0200
I try to create a shared library (size 20-30 MB) on Linux (SuSe 6.4).
gcc version 2.95.2 19991024 (release)
GNU ld version 2.9.5 (with BFD 2.9.5.0.24)
The linker fails with
Not enough room for program headers (allocated 3, need 4)
/usr/i486-suse-linux/bin/ld. final link failed: Bad value
collect2: ld returned 1 exit status
I studied the man pages and all newsgroups, and I asked some newsgroups, but
had no success.
Is this an error or is there a possibility to surround this error ?
Please help !
Thanks a lot,
Josef
Building shared library ...
/usr/bin/gcc -lstdc++ -shared -Wl,-Bsymbolic -Wl,-n -Wl,-no-keep-memory -g
-o /Ena31/sys/sfc/linuxDebug/libsfc36d.so linuxDebug/CClass.o
linuxDebug/CObject.o linuxDebug/COleDateTime.o linuxDebug/CString.o
linuxDebug/CTime.o linuxDebug/SFC.o linuxDebug/SFCAccessGroup.o
linuxDebug/SFCAccessGroupFilter.o linuxDebug/SFCAdmin.o
linuxDebug/SFCAllocTrace.o linuxDebug/SFCAttribute.o
linuxDebug/SFCAttributeFilter.o linuxDebug/SFCAttributeTemplate.o
linuxDebug/SFCAttributeTemplateFilter.o
linuxDebug/SFCAttributeTemplateType.o linuxDebug/SFCAttributeType.o
linuxDebug/SFCAttributeValue.o linuxDebug/SFCAttributeValueByteFile.o
linuxDebug/SFCAttributeValueFilter.o
linuxDebug/SFCAttributeValueLongBinary.o linuxDebug/SFCAttributeValueType.o
linuxDebug/SFCCacheManager.o linuxDebug/SFCCheckReorgResult.o
linuxDebug/SFCCompareResult.o linuxDebug/SFCConfiguration.o
linuxDebug/SFCConfigurationClass.o linuxDebug/SFCContext.o
linuxDebug/SFCContextClass.o linuxDebug/SFCCriticalSection.o
linuxDebug/SFCEntity.o linuxDebug/SFCEntityFilter.o linuxDebug/SFCEvent.o
linuxDebug/SFCFilter.o linuxDebug/SFCFilterImp.o
linuxDebug/SFCFilterPattern.o linuxDebug/SFCFlag.o linuxDebug/SFCFunction.o
linuxDebug/SFCGroup.o linuxDebug/SFCGroupFilter.o linuxDebug/SFCLoader.o
linuxDebug/SFCListImpl.o linuxDebug/SFCMapping.o
linuxDebug/SFCMergeOptions.o linuxDebug/SFCObject.o
linuxDebug/SFCObjectClass.o linuxDebug/SFCObjectClassFilter.o
linuxDebug/SFCObjectFilter.o linuxDebug/SFCOMSEntity.o
linuxDebug/SFCOMSList.o linuxDebug/SFCPermissions.o linuxDebug/SFCPointer.o
linuxDebug/SFCProcess.o linuxDebug/SFCRelation.o
linuxDebug/SFCRelationFilter.o linuxDebug/SFCRelationship.o
linuxDebug/SFCRelationshipFilter.o linuxDebug/SFCRelationTemplate.o
linuxDebug/SFCRelationTemplateFilter.o linuxDebug/SFCRepAtt.o
linuxDebug/SFCRepAttTempl.o linuxDebug/SFCRepClass.o
linuxDebug/SFCRepCtxDef.o linuxDebug/SFCRepKey.o linuxDebug/SFCRepObj.o
linuxDebug/SFCRepObjConf.o linuxDebug/SFCRepository.o
linuxDebug/SFCRepProcess.o linuxDebug/SFCRepRel.o linuxDebug/SFCRepRelship.o
linuxDebug/SFCRepRelTempl.o linuxDebug/SFCRepState.o
linuxDebug/SFCRepValue.o linuxDebug/SFCRepWsp.o linuxDebug/SFCSession.o
linuxDebug/SFCState.o linuxDebug/SFCStructureCompareOptions.o
linuxDebug/SFCStructureCompareResult.o linuxDebug/SFCUser.o
linuxDebug/SFCUserFilter.o linuxDebug/SFCValueHelper.o
linuxDebug/SFCVersionOptions.o linuxDebug/SFCWorkspace.o
linuxDebug/SFCWorkspaceClass.o linuxDebug/SFCPace.o
linuxDebug/SFCCreateVersion.o linuxDebug/adm_cmd.o linuxDebug/adm_lst.o
/Ena31/sys/pdb/linuxDebug/libeba.a /Ena31/sys/cna/linuxDebug/libcna.a
/usr/i486-suse-linux/bin/ld: /Ena31/sys/sfc/linuxDebug/libsfc36d.so: Not
enough room for program headers (allocated 3, need 4)
/usr/i486-suse-linux/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [/Ena31/sys/sfc/linuxDebug/libsfc36d.so] Error 1
Josef Kammerloher Zamdorfer Strasse
120
Softlab GmbH 81677 München
[mailto:Josef.Kammerloher@softlab.de] Phone: (++49 89) 9936 1557
http://www.softlab.com/germany Fax: (++49 89) 9302 761
Pers.Fax: 089/2443-30502