vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| All, We have compiled some c files using +z option. We are trying to relink them with some other .o files which have already been built with the +Z option and find that there are relink failures of the following type: ................. Reference from: czutil.o(0x113c) ld: Data Linkage Table (+z) overflow in file czutil.o - use +Z option to recompile ................. Is there any linker option that can be used to eliminate the work of going back and compiling them again with the +Z option. -Ganesh |
| |||
| Ganesh- > We have compiled some c files using +z option. We are trying to relink > them with some other .o files which have already been built with the +Z > option and find that there are relink failures of the following type: > ................ > Reference from: czutil.o(0x113c) > ld: Data Linkage Table (+z) overflow in file czutil.o - use +Z option > to recompile > ................ > > Is there any linker option that can be used to eliminate the work of > going back and compiling them again with the +Z option. Not in general. If you're willing to induldge in major hackery, you could try linking the .o files compiled with +z before those you recompiled with +Z on the linker command line. That MIGHT result in the short-offset references being allocated near enough to the center of the DLT to reach, while the longer offsets in the +Z could reach the DLT entries further away from where r19 points to in this shlib. Don't bet your house on this working, though. Obviously, removing everything and rebuilding from source with +Z is the more maintainable solution. The only hope I can give you is that the error message above has been working for a long time - it's almost certainly correct, so if you perturb the link in such a way that the message doesn't appear you've very likely succeeded in working around this problem. - Carl Burch Former linker person |
| ||||
| Yup thnx for tht quick suggestion. I tried using it.. it did work for a few. But apart from the risk, i will have to modify too many make files which are already in place. Anyway thnx a lot for tht suggestion. -Ganesh mmsganesh Carl Burch wrote: > Ganesh- > > > We have compiled some c files using +z option. We are trying to relink > > them with some other .o files which have already been built with the +Z > > option and find that there are relink failures of the following type: > > ................ > > Reference from: czutil.o(0x113c) > > ld: Data Linkage Table (+z) overflow in file czutil.o - use +Z option > > to recompile > > ................ > > > > Is there any linker option that can be used to eliminate the work of > > going back and compiling them again with the +Z option. > > Not in general. > > If you're willing to induldge in major hackery, you could try > linking the .o files compiled with +z before those you recompiled with > +Z on the linker command line. That MIGHT result in the short-offset > references being allocated near enough to the center of the DLT to > reach, while the longer offsets in the +Z could reach the DLT entries > further away from where r19 points to in this shlib. Don't bet your > house on this working, though. > > Obviously, removing everything and rebuilding from source with +Z is > the more maintainable solution. The only hope I can give you is that > the error message above has been working for a long time - it's almost > certainly correct, so if you perturb the link in such a way that the > message doesn't appear you've very likely succeeded in working around > this problem. > > > - Carl Burch > > Former linker person |
| Thread Tools | |
| Display Modes | |
|
|