Improve AIX port some more.
commitf53f992ad53e62a8452884f9322250894ddbb505
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Feb 2013 18:43:11 +0000 (12 10:43 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Feb 2013 18:43:11 +0000 (12 10:43 -0800)
tree2f9acf504b252629809a67f436166a84355a72fc
parent4458c2551b1a0bd89e5c299b009516e17f255c28
Improve AIX port some more.

With this, it should be as good as it was in 23.3, though it's
still pretty bad: the dumped emacs does not run.  See Mark Fleishman in
http://lists.gnu.org/archive/html/help-gnu-emacs/2011-04/msg00287.html
* unexaix.c (start_of_text): Remove.
(_data, _text): Declare as char[], not int, as AIX manual suggests.
(bias, lnnoptr, text_scnptr, data_scnptr, load_scnptr)
(orig_load_scnptr, orig_data_scnptr):
Now off_t, not long, since they are file offsets.
(make_hdr): Use _data, not start_of_data ().
This is the key part of the fix.
(make_hdr, unrelocate_symbols): Use off_t for file offsets.
(unrelocate_symbols): Cast pointers to intptr_t, not to ulong.

Fixes: debbugs:13650
src/ChangeLog
src/unexaix.c