GithubHelp home page GithubHelp logo

Compiling for Cortex-A9 about core HOT 5 CLOSED

miracl avatar miracl commented on August 21, 2024
Compiling for Cortex-A9

from core.

Comments (5)

mcarrickscott avatar mcarrickscott commented on August 21, 2024

from core.

pietrotedeschi avatar pietrotedeschi commented on August 21, 2024

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.

mcarrickscott avatar mcarrickscott commented on August 21, 2024

from core.

pietrotedeschi avatar pietrotedeschi commented on August 21, 2024

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.

mcarrickscott avatar mcarrickscott commented on August 21, 2024

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.