Re: Link Error: Relocation overflow for relocation entry
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com I am seeing one of my object files with a data section total of 70998 (kilobytes = 70Mb?) and a text section of 444606 (444Mb??). Is this the right way to look at it? I think that's correct. I have about 12 object files that have a greater size than 30000 data section. I have about 52 object files that have a greater size than 30000 text section. Could this be the problem? Perhaps I can break these files up...or recruit some other programmers to help with this stage of converting from CodeWarrior to Xcode. Thanks for any advice you can give me, I would like to avoid spending the DTS incident. I will if necessary. But if you replaced global variables like char gBigArray[1024*1024]; with stuff like char* gBigArray = NULL; then in the code do gBigArray = new char[1024*1024]; --Bob -- Bob Clark Clarkwood Software, LLC http://www.clarkwood.com/ Mac OS X Software _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Do these sections have to be smaller than 32Mb? Both? I think you mentioned that you have a bunch of really big arrays. A brain-dead way to get past the linker might be to allocate those arrays (in the heap) at runtime. If you got really cutesy I suppose you could even set up C++ objects whose constructors allocated the arrays. you'd have your big array and it would live happily in the heap without obstructing the link. (This is mostly speculation though, since my problem ended up not really being because of humongous text sections.) This email sent to site_archiver@lists.apple.com
participants (1)
-
Bob Clark