[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MPS: Forwording symbols
From: |
Gerd Möllmann |
Subject: |
Re: MPS: Forwording symbols |
Date: |
Mon, 17 Jun 2024 14:15:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
>> > Hm, why do you think it writes to the data segment? Confusing names
>> > aside, it seems to read a value, which presumably is a pointer, adjusts
>> > it to the new basis and then writes it back.
>>
>> Becasue of this
>>
>> value += emacs_basis ();
>>
>> It has dumnped pointer - basis, and now uses that value to get the
>> pointer in the current process.
>
> Isn't this because the dumped data is loaded with a different base
> address than the one with which is was dumped?
That'c correct. The same happens, with a different basis, for addresses
in the dump. Helmut asked how I know that it writes to Emacs' data
segment. That's from the use of emacs_basis.
Re: MPS: Forwording symbols, Gerd Möllmann, 2024/06/16
- Re: MPS: Forwording symbols, Eli Zaretskii, 2024/06/17
- Re: MPS: Forwording symbols, Helmut Eller, 2024/06/17
- Re: MPS: Forwording symbols, Gerd Möllmann, 2024/06/17
- Re: MPS: Forwording symbols, Gerd Möllmann, 2024/06/17
- Re: MPS: Forwording symbols, Helmut Eller, 2024/06/17
- Re: MPS: Forwording symbols, Gerd Möllmann, 2024/06/17
- Re: MPS: Forwording symbols, Helmut Eller, 2024/06/17