Comments (5)
from core.
Hello Pietro, We don't have your configuration, so we cannot reproduce this problem here. It appears from the error message that you are cross-compiling, and maybe you built the library core.a in one environment and then ported it to another environment(?) It seems that the cross-compiled library is not of the correct format for the runtime environment. Mike
…
On Fri, May 22, 2020 at 6:30 AM Pietro Tedeschi @.***> wrote: Hello, when I try to compile for Cortex-A9 with the following toolchain arm-linux-gnueabihf-gcc as: arm-linux-gnueabihf-gcc -mcpu=cortex-a9 -static -O2 testecc.c core.a -o testecc I have an error like this: /usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: core.a: error adding symbols: file format not recognized collect2: error: ld returned 1 exit status Any suggestion to solve this issue? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#11>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU3ZDSZQ2F63U3ACBS36C3RSYEYJANCNFSM4NHPZLNA .
Exactly Mike. I generated my core.a on my laptop with a GNU/Linux distro since I cannot install the gcc on this very constrained environment (where there is also a minimal distro Linux installed) to generate the core.a library on it. I was thinking to create a VM with the same architecture and generate the core.a on it, but it is very time consuming for a test. Do you have any other suggestion to solve this issue?
from core.
from core.
Hello Pietro, Without access to your configuration, we cannot really help. You might try cross-compiling a really simple "hello world" program, or create a really simple library with one function that prints "hello world", and see can you get that to work. Mike On Fri, May 22, 2020 at 10:18 AM Pietro Tedeschi [email protected] wrote:
…
Hello Pietro, We don't have your configuration, so we cannot reproduce this problem here. It appears from the error message that you are cross-compiling, and maybe you built the library core.a in one environment and then ported it to another environment(?) It seems that the cross-compiled library is not of the correct format for the runtime environment. Mike … <#m_2159987148689211825_> On Fri, May 22, 2020 at 6:30 AM Pietro Tedeschi @.***> wrote: Hello, when I try to compile for Cortex-A9 with the following toolchain arm-linux-gnueabihf-gcc as: arm-linux-gnueabihf-gcc -mcpu=cortex-a9 -static -O2 testecc.c core.a -o testecc I have an error like this: /usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: core.a: error adding symbols: file format not recognized collect2: error: ld returned 1 exit status Any suggestion to solve this issue? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#11 <#11>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU3ZDSZQ2F63U3ACBS36C3RSYEYJANCNFSM4NHPZLNA . Exactly Mike. I generated my core.a on my laptop with a a GNU/Linux distro since I cannot install the gcc on this very constrained environment (where there is also a minimal distro Linux installed) to generate the core.a library on it. I was thinking to create a VM with the same architecture and generate the core.a on it, but it is very time consuming for a test. Do you have any other suggestion to solve this issue? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#11 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU3ZDWWAOC2QHUDQC57OXDRSY7NLANCNFSM4NHPZLNA .
Ok Mike, I created a simple helloword as following:
#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}
I compiled it with
arm-linux-gnueabihf-gcc -mcpu=cortex-a9 -static -O2 main.c core.a -o main
and I did not receive any errors during the compiling.
Update:
I tried now a simple example compiling with the same tool-chain, and unfortunately I received the aforementioned error:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "randapi.h"
#include "ecdh_SECP160R1.h"
#define field_size_EFS EFS_SECP160R1
#define field_size_EGS EGS_SECP160R1
#define AESKEY AESKEY_SECP160R1
int main()
{
int i,fd1;
unsigned long ran;
time((time_t *)&ran);
char raw[100];
octet RAW = {0, sizeof(raw), raw};
csprng RNG; // Crypto Strong RNG
CREATE_CSPRNG(&RNG, &RAW); // initialise strong RNG
RAW.len = 100; // fake random seed source
RAW.val[0] = ran;
RAW.val[1] = ran >> 8;
RAW.val[2] = ran >> 16;
RAW.val[3] = ran >> 24;
for (i = 4; i < 100; i++) RAW.val[i] = i;
printf("\nStarting --- protocol \n");
}
from core.
from core.
Related Issues (20)
- JS library doesn't compile HOT 1
- BLS: bug in Rust implementation? HOT 3
- ECP::muln() bug? HOT 2
- Bug with BIG.mod in Java? HOT 2
- ECP2 multiply by FP in golang? HOT 15
- G2mul for ECP? (Golang) HOT 3
- golang: Signature Recover function using FP, ECP
- core/python could be structured more like a Python module HOT 2
- Javascript ecp2 toBytes functions gives not the same bytes as in the Java implementation HOT 5
- FP256BN Plus and math.MaxInt64
- feature request: addition of AES-CTR (and optionally, SIV-AES) HOT 2
- Reporting security issues HOT 2
- BLS12-381 Signature Aggregation HOT 3
- Is `ECP::mapit` a good random oracle? HOT 4
- secp256r1 HOT 2
- Support go modules HOT 3
- Pairing Example with JS
- select indepentent generator with node js HOT 1
- Attack against M-PIN HOT 4
- core/java: ECP compression HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.