The upgarde of CCF App #2845
Answered
by
Silence-zyx
Silence-zyx
asked this question in
Q&A
-
I learn that updating-code-verison shows a way to update the app. sudo ./oesign dump -e ~/CCF/ccf-1.0.6/CCF-ccf-1.0.6/samples/apps/logging/build/liblogging.virtual.so it returns 2021-07-26T16:22:55+0800.815387Z [(H)ERROR] tid(0x7f372e1d5c00) | Unsupported elf relocation type 16
(oe_result_t=OE_UNSUPPORTED_ENCLAVE_IMAGE) [/source/openenclave/host/sgx/elf.c:_elf64_load_relocations:1920]
2021-07-26T16:22:55+0800.815537Z [(H)ERROR] tid(0x7f372e1d5c00) | :OE_UNSUPPORTED_ENCLAVE_IMAGE [/source/openenclave/host/sgx/elf.c:elf64_load_relocations:1957]
2021-07-26T16:22:55+0800.815559Z [(H)ERROR] tid(0x7f372e1d5c00) | :OE_INVALID_IMAGE [/source/openenclave/host/sgx/loadelf.c:_load_elf_image:447]
2021-07-26T16:22:55+0800.825607Z [(H)ERROR] tid(0x7f372e1d5c00) | :OE_INVALID_IMAGE [/source/openenclave/host/sgx/loadelf.c:_load_primary_image:1426]
2021-07-26T16:22:55+0800.825712Z [(H)ERROR] tid(0x7f372e1d5c00) | :OE_INVALID_IMAGE [/source/openenclave/host/sgx/loadelf.c:oe_load_elf_enclave_image:1445]
2021-07-26T16:22:55+0800.825732Z [(H)ERROR] tid(0x7f372e1d5c00) | :OE_INVALID_IMAGE [/source/openenclave/host/sgx/load.c:oe_load_enclave_image:63]
2021-07-26T16:22:55+0800.825745Z [(H)ERROR] tid(0x7f372e1d5c00) | :OE_INVALID_IMAGE [/source/openenclave/tools/oesign/oeinfo.c:oe_read_oeinfo_sgx:27]
./oesign ERROR: Failed to load SGX enclave properties from .oeinfo section
./oesign ERROR: Cannot find entry point symbol
=== SGX Enclave Properties:
product_id=0
security_version=0
debug=0
xfrm=0000000000000000
num_heap_pages=0
num_stack_pages=0
num_tcs=0
mrenclave=0000000000000000000000000000000000000000000000000000000000000000
mrsigner=0000000000000000000000000000000000000000000000000000000000000000
signature=000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
./oesign encountered 2 errors And I changed the enclave_lib file to === Entry point:
name=_start
address=0x0000000011ae17
=== SGX Enclave Properties:
product_id=65535
security_version=65535
debug=0
xfrm=0000000000000000
num_heap_pages=65535
num_stack_pages=65535
num_tcs=65535
mrenclave=0000000000000000000000000000000000000000000000000000000000000000
mrsigner=0000000000000000000000000000000000000000000000000000000000000000
signature=000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 I wonder that:
|
Beta Was this translation helpful? Give feedback.
Answered by
Silence-zyx
Jul 26, 2021
Replies: 1 comment 5 replies
-
By the way, if the debug method supports virtual mode? |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
achamayou
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By the way, if the debug method supports virtual mode?