Skip to content

Commit

Permalink
Fix ldelf error of arm32 ta (apache#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
DemesneGH authored and RMheng committed Oct 15, 2021
1 parent c7e88a5 commit 7d0b61b
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 16 deletions.
1 change: 1 addition & 0 deletions examples/acipher-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/acipher-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/aes-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/aes-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/authentication-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/authentication-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/big_int-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/big_int-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/diffie_hellman-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/diffie_hellman-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/digest-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/digest-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/hello_world-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/hello_world-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/hotp-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/hotp-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/message_passing_interface-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = false
opt-level = 1
2 changes: 1 addition & 1 deletion examples/message_passing_interface-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/random-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/random-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/secure_storage-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/secure_storage-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/serde-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ proto = { path = "../proto" }

[profile.release]
lto = false
opt-level = 1
2 changes: 1 addition & 1 deletion examples/serde-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/supp_plugin-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/supp_plugin-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/tcp_client-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/tcp_client-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/time-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/time-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down
1 change: 1 addition & 0 deletions examples/udp_socket-rs/ta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ proto = { path = "../proto" }

[profile.release]
lto = true
opt-level = 1
2 changes: 1 addition & 1 deletion examples/udp_socket-rs/ta/ta_arm.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SECTIONS {
.ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.got : { *(.got.plt) *(.got) }
.rel.text : { *(.rel.text) *(.rel.gnu.linkonce.t*) }
.rela.text : { *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rel.data : { *(.rel.data) *(.rel.gnu.linkonce.d*) }
Expand Down Expand Up @@ -70,6 +69,7 @@ SECTIONS {
. = ALIGN(4096);

.data : { *(.data .data.* .gnu.linkonce.d.*) } :rwdata
.got : { *(.got.plt) *(.got) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.* COMMON)

Expand Down

0 comments on commit 7d0b61b

Please sign in to comment.