Giter VIP home page Giter VIP logo

Comments (4)

cjee21 avatar cjee21 commented on June 7, 2024

Please manually create a release directory if it does not exist before executing the gcc command. Alternatively, change the -o parameter from release to a directory that exists.

from rdrand-tester.

Ricky-Tigg avatar Ricky-Tigg commented on June 7, 2024
$ touch ../RDRAND_Tester_Linux
$ gcc RDRAND_Tester.c -o ../RDRAND_Tester_Linux -Wall -Wconversion -Wformat-security -O3 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fPIE -fstack-clash-protection -fcf-protection -Wl,-z,relro,-z,now,-pie,--hash-style=gnu,--no-copy-dt-needed-entries,--as-needed -s
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/13/crtbegin.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a PIE object
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status

from rdrand-tester.

cjee21 avatar cjee21 commented on June 7, 2024

Try:
gcc RDRAND_Tester.c -o ../RDRAND_Tester_Linux -Wall -Wconversion -Wformat-security -O3 -s
The other options are good security practice but not essential to the functionality of this simple application.

Anyway, the errors seem to be a compiler related and not concerning the code of this application. I cannot help further as I am not familiar with Fedora and not an expert with GCC.

from rdrand-tester.

Ricky-Tigg avatar Ricky-Tigg commented on June 7, 2024

I noted that touch ../<file> was not needed prior to the execution of this gcc command. This command you just suggested and the gcc one that here follows are executed without extra messages. Time to test the binary file created by this process; ./RDRAND_Tester_Linux. It is operational.

$ find .. -maxdepth 1 -type f -ls
$ gcc RDRAND_Tester.c -o ../RDRAND_Tester_Linux -Wall -Wconversion -Wformat-security -O3 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fPIE -fstack-clash-protection -fcf-protection -s
$ find .. -maxdepth 1 -type f -ls
145658  24  -rwxr-xr-x  1 _  _  20544 Nov 10 17:12 ../RDRAND_Tester_Linux

from rdrand-tester.

Related Issues (1)

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.