Hi Georgia,

Adding  arm_control_flow_integrity = "none" in the configuration did fix 
the issue.
Thanks !

Best regards,
Benoit
Le mercredi 14 décembre 2022 à 14:46:45 UTC+1, georgia...@arm.com a écrit :

> Hey Benoit,
>
> It looks like CFI is incorrectly being enabled for your build, although 
> this is not supported for this platform at the moment. Until we fix this in 
> the Chromium build system, can you try adding:
>       arm_control_flow_integrity = "none"
> explicitly to your config for now?
>
> On Wednesday, December 14, 2022 at 6:45:14 AM UTC jgr...@chromium.org 
> wrote:
>
>> Hey Benoit,
>>
>> the v8_Default_embedded_blob_code_ symbol is created by the embedded 
>> file writer 
>> <https://source.chromium.org/chromium/chromium/src/+/main:v8/src/snapshot/embedded/embedded-file-writer.cc;l=160;drc=697e7e0df4f2d9bc7189c1358100705662e4c4ef>
>>  and 
>> ends up in out/foo/gen/embedded.S in your build directory. I'd make sure 
>> that file exists (or the .cc equivalent), has expected contents, and is 
>> included in the build.
>>
>> On Wed, Dec 7, 2022 at 10:08 AM Benoit Blanchon <benoit....@gmail.com> 
>> wrote:
>>
>>> Hi,
>>>
>>> I successfully build PDFium with V8 on most platforms, but I'm having 
>>> the following linker errors when target_os=ios and target_cpu=arm64:
>>>
>>> ld64.lld: error: undefined symbol: v8_Default_embedded_blob_code_
>>> >>> referenced by isolate.cc:0 (../v8/src/execution/isolate.cc:0)
>>> >>>               obj/v8/v8_base_without_compiler/isolate.o:(symbol 
>>> v8::internal::Isolate::InitializeDefaultEmbeddedBlob()+0x104)
>>> >>> referenced by isolate.cc:0 (../v8/src/execution/isolate.cc:0)
>>> >>>               obj/v8/v8_base_without_compiler/isolate.o:(symbol 
>>> v8::internal::Isolate::InitializeDefaultEmbeddedBlob()+0x100)
>>> >>> referenced by deoptimizer-cfi-builtins.cc:52 
>>> (../v8/src/deoptimizer/deoptimizer-cfi-builtins.cc:52)
>>> >>>               obj/v8/v8_snapshot/deoptimizer-cfi-builtins.o:(symbol 
>>> v8::internal::Deoptimizer::IsValidReturnAddress(unsigned long, 
>>> v8::internal::Isolate*)+0x44)
>>> >>> referenced 1 more times
>>>
>>> ld64.lld: error: undefined symbol: v8_Default_embedded_blob_data_
>>> ...
>>> ld64.lld: error: undefined symbol: v8_Default_embedded_blob_data_size_
>>> ...
>>> ld64.lld: error: undefined symbol: v8_Default_embedded_blob_code_size_
>>> ...
>>> ld64.lld: error: undefined symbol: Builtins_RestartFrameTrampoline
>>> ...
>>> ld64.lld: error: undefined symbol: 
>>> Builtins_BaselineOrInterpreterEnterAtNextBytecode
>>> ...
>>> ld64.lld: error: undefined symbol: 
>>> Builtins_BaselineOrInterpreterEnterAtBytecode
>>> ...
>>> ld64.lld: error: undefined symbol: construct_stub_invoke_deopt_addr
>>> ...
>>> ld64.lld: error: undefined symbol: construct_stub_create_deopt_addr
>>> ...
>>> ld64.lld: error: undefined symbol: Builtins_ContinueToJavaScriptBuiltin
>>> ...
>>> ld64.lld: error: undefined symbol: 
>>> Builtins_ContinueToJavaScriptBuiltinWithResult
>>> ...
>>> ld64.lld: error: undefined symbol: Builtins_ContinueToCodeStubBuiltin
>>> ...
>>> ld64.lld: error: undefined symbol: 
>>> Builtins_ContinueToCodeStubBuiltinWithResult
>>> ...
>>> ld64.lld: error: undefined symbol: 
>>> Builtins_InterpreterEnterAtNextBytecode
>>> ...
>>> ld64.lld: error: undefined symbol: Builtins_InterpreterEnterAtBytecode
>>>
>>> As far as I can tell, v8_Default_embedded_blob_data_ is defined 
>>> in v8/src/builtins/arm64/builtins-arm64.cc, which seems to build fine (see 
>>> log 
>>> <https://github.com/bblanchon/pdfium-binaries/actions/runs/3612296209/jobs/6087308873>
>>> ).
>>>
>>> I originally asked this question on the PDFium 
>>> <https://groups.google.com/g/pdfium/c/8R56bd60PSI/m/KK34nTs5AwAJ> list 
>>> but was told to ask it here instead.
>>>
>>> Any idea how I could fix this?
>>>
>>> Best regards,
>>> Benoit
>>>
>>> -- 
>>> -- 
>>> 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/fedd3b80-41e9-4118-bccd-f0e0a6d6d569n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/v8-users/fedd3b80-41e9-4118-bccd-f0e0a6d6d569n%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/44b20fac-5c7b-4364-89e5-bf1af776d482n%40googlegroups.com.

Reply via email to