Questions tagged [gnu-toolchain]

The GNU toolchain is a broad collection of programming tools produced by the GNU Project. These tools form a toolchain (a suite of tools used in a serial manner) used for developing software applications and operating systems. The GNU toolchain plays a vital role in development of Linux, some BSD systems, and software for embedded systems.

Consider adding specific tool tags.

Cross platform portability

  • - general tag for auto-tool suite.
  • - tool for generating a configure script.
  • - makefiles generation tool.
  • - library portability tool.
  • - for use of the output of autoconf; a configure script.
  • - language used by many autotools.
  • - database of install library options.
  • - the gnu building program.

Code generation

  • - the 'C' compiler.
  • - an assembler.
  • - a yacc tool; parser generator.
  • - the gnu scanner; text to tokens.
  • - the gnu C++ compiler.
  • - a collection of support tools for building. Also:
  • - a newer gnu linker
149 questions
2
votes
0 answers

Replace/Override statically linked library

I have an object file — foo.so — provided by a vendor. That object file was statically linked with a publicly available library — bar_1.0.a. There is a new version of the library bar_1.1.a that fixes a critical bug, but the vendor is not supplying a…
Sean Bright
  • 118,630
  • 17
  • 138
  • 146
2
votes
2 answers

Retaining Compatibility To Assembly With inline Functions

I'm writing some header files, which are to be accessed by both C code and assembly. Assembly code is preprocessed with the C preprocessor for this sake. The problem is I have plenty of inline functions in those header files. The assembler cannot…
cadaniluk
  • 15,027
  • 2
  • 39
  • 67
2
votes
1 answer

Determine if a compiled ELF object is 32-bit or 64-bit

I want to verify if an object has been compiled in 32-bit or 64-bit: % readelf -h my_obj ELF Header: Magic: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's…
Mark
  • 6,052
  • 8
  • 61
  • 129
2
votes
1 answer

Toolchain differences with alignment (why this even worked)

There is an ATMEL library that doesn't work with my toolchain (GNU tools for ARM) and I know why, but I don't know why it works for an old YAGARTO and I guess that also for KEIL and IAR I'm working in an ARMV5 processor (AT91SAM9) that doesn't…
LuisF
  • 33
  • 5
2
votes
2 answers

Where to find good tutorial for GNU toolkit?

I had programmed an application in C# using Visual Studio as an IDE on windows platform, but I have now switched to linux operating system and using VI, sublime text and gedit so far for programming in linux(using C). Although I don't want to get…
Pratik Singhal
  • 6,283
  • 10
  • 55
  • 97
2
votes
3 answers

Arm sourcery toolchain linking error

I want to use standard c function in one of my function void print(const char* format,...) { char buffer[256]; va_list args; va_start (args, format); vsnprintf (buffer,256,format, args); va_end (args); …
sanjay
  • 735
  • 1
  • 5
  • 23
2
votes
2 answers

ARM assembly: bad instruction "mov32"

I wanted to load a 32bit constant into a register and I found a pseudo-instruction "mov32" on which can do this (mov32 pseudo-instruction). Then I write an assembly file which includes: MOV32 r0, #0xABCDEF12 And compiled it with linaro…
wm8120
  • 145
  • 3
  • 9
2
votes
3 answers

Rendering Certain Character Glyph on iPhone

I am currently using the iPhone SDK to create an app that utilizes Indic scripts. However, the iPhone has issues with rendering certain glyphs in many Indic scripts. For example: प + ् + र = प्र or ਕ + ੍ + ਰ = ਕ੍ਰ When you type this on a Mac (or…
Kulpreet
  • 160
  • 2
  • 14
2
votes
2 answers

Compile parameters for MIPS based codesourcery toolchain?

I installed codesourcery cross compile toolchain for mips32 architecture on my WIN 7 machince. I want to first compile a simple 'factorial' binary for my router which is based on MIPS32. From little search on the internet, I found it is based on…
Akhil P Oommen
  • 215
  • 4
  • 11
2
votes
1 answer

Good prebuilt GNU toolchain for Android?

I have currently used the standalone toolchain from Android's NDK, but it seems rather difficult to cross compile programs because the libraries provided in NDK lack a lot of things. I've built binutils using NDK standalone toolchain and it all…
2
votes
1 answer

What difference between some-prefix-gcc and gcc --target=some-prefix?

I want to use another version of gcc (newer), but don't want to replace original -gcc executable. Which compiler flags do I have to use to emulate the -gcc behaviour? I know about --prefix and --target flags during…
emett
  • 128
  • 13
1
vote
0 answers

ARM cross compiler with excessive link times

I am currently porting a large code base to multiple arm platforms using various tool chains provided by device manufactures. If I build and link the code base on linux it takes roughly 30 seconds to link. For a number of the cross compilers I…
Kulidan
  • 43
  • 4
1
vote
0 answers

I can't add custom instructions to RISC-V GNU GCC

I want to add custom instructions to riscv64-gnu-gcc. I added the following code to riscv-opc.c and riscv-opc.h while referring to the following sites. I am getting an error for some reason. Why? Ubuntu20.04, riscv64-gnu-tool 12.2.0. I plan to run a…
1
vote
1 answer

How to specify architecture for sde-objcopy?

I need to convert an picture to an object file(.o) use sde-objcopy, then I can use this picture in our no-os system. I had test the objcopy command, it works well on my PC(Fedora 12). For example, the command below will convert test.jpg to…
Serval
  • 153
  • 1
  • 8
1
vote
3 answers

How do I get a list of all declared classes inheriting from a particular class in C++

I know that isn't exactly possible in C++, but maybe a toolchain that can generate code which has a function, which when called gives me a list of all those classes. For example, across multiple files I have stuff like: class MyClass : public…
Rohan Prabhu
  • 7,180
  • 5
  • 37
  • 71