Looks like this do the job.

Thank you for the fast response.

В 8:46:43 ч. UTC+3на понеделник, 31 май 2021 г. jgr...@chromium.org написа:

> Yes, running with a non-readable .text section should work. 
> Pass --no-partial-constant-pool to disable the mechanism you mentioned 
> above.
>
> On Wed, May 26, 2021 at 3:43 PM martin dobrev <martin...@gmail.com> wrote:
>
>> Hi, 
>>
>> Recently i ported v8 for unix base platform (architecture is x64) where 
>> all executable memory is "execute only" => each instruction which try to 
>> read from  executable  memory result in access violation. The problem is 
>> that some of the code generated by `torque` needs to read from the code 
>> segments . For example Math.floor defined this constant  
>> `TNode<Float64T> two_52 = Float64Constant(4503599627370496.0E0);`
>>
>> later used in couple places in function implementation. And `torque` 
>> generate following assebly which result in crash, because instuction on 
>> '00000000F34A0909' try to read from the code segment.
>> [image: asm.png]
>>
>> Is there a way to force `torque` to generate immediate/direct mov instead 
>> of relative one for constants or maybe i can move them in data segments 
>> somehow ? 
>>
>> -- 
>> -- 
>> v8-users mailing list
>> v8-u...@googlegroups.com
>> http://groups.google.com/group/v8-users
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "v8-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to v8-users+u...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/v8-users/65329c44-c9ed-45be-b600-769260d8a52bn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/v8-users/65329c44-c9ed-45be-b600-769260d8a52bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/9ec8f5b4-ac7c-4ad1-9a52-7d73819a84a7n%40googlegroups.com.

Reply via email to