Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch > #32255

Re: Agner's Proposal for an ideal extensible instruction set

From Terje Mathisen <terje.mathisen@tmsw.no>
Newsgroups comp.arch
Subject Re: Agner's Proposal for an ideal extensible instruction set
Date 2015-12-29 10:52 +0100
Organization Aioe.org NNTP Server
Message-ID <n5tl5f$8o8$2@speranza.aioe.org> (permalink)
References (2 earlier) <n5sbfn$nqe$1@speranza.aioe.org> <n5sg7n$9ud$1@dont-email.me> <n5sirr$ip3$1@dont-email.me> <n5sn5q$f0$1@dont-email.me> <n5sv7s$j2n$1@dont-email.me>

Show all headers | View raw


Ivan Godard wrote:
> On 12/28/2015 5:23 PM, James Van Buskirk wrote:
>>
>>
>> "Ivan Godard"  wrote in message news:n5sirr$ip3$1@dont-email.me...
>>> You really going to use static addresses that can be loaded as literals?
>>
>>> You might consider why load-time ASLR is used.
>>
>>> https://en.wikipedia.org/wiki/Address_space_layout_randomization
>>
>> I thought that ASLR was at orthogonal trajectories to the immediate
>> addresses.  In Windows, an executable or DLL can get loaded
>> anywhere so the OS must be capable of filling in any required pointers
>> at load time anyhow.  Must be fun on Alpha where the pointers are
>> scattered across 4 instructions.  Even PIE code gets offsets from PC in
>> immediates, doesn't it?
>>
>
> An immediate address must be known no later than link time in order to
> be put in the code, whereas with ASLR the address to use is not known
> until load time at the earliest, and two concurrent runs of the same
> code will be running at different addresses.
>
>
Is that always true Ivan?

I thought the linker could insert placeholders for any such immediate 
address data, and note them in some sort of fixup list for the loader.

The loader would go through the fixup list and for each entry there, go 
into the code and patch/adjust the entry to match the actual load address.

Terje

-- 
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"

Back to comp.arch | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Agner's Proposal for an ideal extensible instruction set Jean-Marc Bourguet <jm@bourguet.org> - 2015-12-28 15:50 +0100
  Re: Agner's Proposal for an ideal extensible instruction set Quadibloc <jsavard@ecn.ab.ca> - 2015-12-28 07:12 -0800
    Re: Agner's Proposal for an ideal extensible instruction set Piotr Wyderski <peter.pan@neverland.mil> - 2016-01-26 16:38 +0100
      Re: Agner's Proposal for an ideal extensible instruction set Quadibloc <jsavard@ecn.ab.ca> - 2016-01-29 12:10 -0800
  Re: Agner's Proposal for an ideal extensible instruction set "James Van Buskirk" <not_valid@comcast.net> - 2015-12-28 09:48 -0700
    Re: Agner's Proposal for an ideal extensible instruction set Quadibloc <jsavard@ecn.ab.ca> - 2015-12-28 10:29 -0800
    Re: Agner's Proposal for an ideal extensible instruction set Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-28 23:01 +0100
      Re: Agner's Proposal for an ideal extensible instruction set "James Van Buskirk" <not_valid@comcast.net> - 2015-12-28 16:25 -0700
        Re: Agner's Proposal for an ideal extensible instruction set Ivan Godard <ivan@millcomputing.com> - 2015-12-28 16:10 -0800
          Re: Agner's Proposal for an ideal extensible instruction set "James Van Buskirk" <not_valid@comcast.net> - 2015-12-28 18:23 -0700
            Re: Agner's Proposal for an ideal extensible instruction set Ivan Godard <ivan@millcomputing.com> - 2015-12-28 19:41 -0800
              Re: Agner's Proposal for an ideal extensible instruction set Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-29 10:52 +0100
                Re: Agner's Proposal for an ideal extensible instruction set Ivan Godard <ivan@millcomputing.com> - 2015-12-29 02:22 -0800
                Re: Agner's Proposal for an ideal extensible instruction set Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-29 12:58 +0100
                Re: Agner's Proposal for an ideal extensible instruction set Ivan Godard <ivan@millcomputing.com> - 2015-12-29 12:16 -0800
                Re: Agner's Proposal for an ideal extensible instruction set Quadibloc <jsavard@ecn.ab.ca> - 2015-12-29 07:25 -0800
                Re: Agner's Proposal for an ideal extensible instruction set Walter Banks <walter@bytecraft.com> - 2015-12-29 12:27 -0500
                Re: Agner's Proposal for an ideal extensible instruction set Robert Wessel <robertwessel2@yahoo.com> - 2015-12-29 11:46 -0600
                Re: Agner's Proposal for an ideal extensible instruction set paul wallich <pw@panix.com> - 2015-12-29 13:00 -0500
                Re: Agner's Proposal for an ideal extensible instruction set mrs@kithrup.com (Mike Stump) - 2015-12-29 22:21 +0000
            Re: Agner's Proposal for an ideal extensible instruction set anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-12-29 10:16 +0000
        Re: Agner's Proposal for an ideal extensible instruction set Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-29 10:49 +0100
          Re: Agner's Proposal for an ideal extensible instruction set Ivan Godard <ivan@millcomputing.com> - 2015-12-29 02:36 -0800
  Re: Agner's Proposal for an ideal extensible instruction set "Paul A. Clayton" <paaronclayton@gmail.com> - 2015-12-28 09:23 -0800
    Re: Agner's Proposal for an ideal extensible instruction set Quadibloc <jsavard@ecn.ab.ca> - 2015-12-28 10:31 -0800
      Re: Agner's Proposal for an ideal extensible instruction set Erik Trulsson <erikt@Update.UU.SE> - 2016-01-20 15:33 +0000
        Re: Agner's Proposal for an ideal extensible instruction set Casper H.S. Dik <Casper.Dik@OrSPaMcle.COM> - 2016-01-20 15:39 +0000
          Re: Agner's Proposal for an ideal extensible instruction set Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-20 18:31 +0100
        Re: Agner's Proposal for an ideal extensible instruction set Ivan Godard <ivan@millcomputing.com> - 2016-01-20 11:14 -0800
          Re: Agner's Proposal for an ideal extensible instruction set mrs@kithrup.com (Mike Stump) - 2016-01-26 03:36 +0000
      Re: Agner's Proposal for an ideal extensible instruction set Stefan Monnier <monnier@iro.umontreal.ca> - 2016-01-20 16:44 -0500
  Re: Agner's Proposal for an ideal extensible instruction set Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-28 19:56 +0100

csiph-web