Page 1 of 1

OS Specific Toolchain GCC configurations

Posted: Thu Jun 28, 2018 5:34 pm
by DarkPhoenix6
in the OS specific toolchain wiki it says to put in a line like:

Code: Select all

tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h glibc-stdint.h i386/i386elf.h myos.h"
in gcc/config.gcc
see: https://wiki.osdev.org/OS_Specific_Tool ... config.gcc

if I am porting Newlib as my library of choice, should that look like this instead?

Code: Select all

tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h myos.h"

Re: OS Specific Toolchain GCC configurations

Posted: Fri Jun 29, 2018 12:57 am
by Korona
Does newlib-stdint.h exist? You can lookup those files in the gcc/config/ (IIRC) directory and see what they define. Do not blindly add target configuration headers; instead, try to understand what they actually do.