patches/binutils/2.22/500-fix-struct-stat.patch
author Cody Schafer <dev@codyps.com>
Fri May 09 19:13:49 2014 -0700 (2014-05-09)
changeset 3312 4876ff97e039
permissions -rw-r--r--
cc/gcc: allow CC_EXTRA_CONFIG_ARRAY on baremetal

The final bare-metal compiler is built using the core backend.
Currently the core uses the CC_CORE_EXTRA_CONFIG_ARRAY variable.

While this works as supposed to, this can leave the user puzzled
in the menuconfig, since all he can see is the core options, not
the final options.

Only show the core options if any of the core passes are needed,
and use the final options in the core-backend if we're issuing
the bare-metal compiler.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: hide core options if no core pass needed;
use final option in core backend if issuing the bare-metal compiler]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <22181e546ba746202489.1399688067@localhost>
Patchwork-Id: 347586
titus@3116
     1
diff -ur binutils-2.22.org/bfd/bfd-in2.h binutils-2.22/bfd/bfd-in2.h
titus@3116
     2
--- binutils-2.22.org/bfd/bfd-in2.h	2011-09-16 03:15:18.000000000 +0200
titus@3116
     3
+++ binutils-2.22/bfd/bfd-in2.h	2012-11-03 18:25:20.365668349 +0100
titus@3116
     4
@@ -32,6 +32,8 @@
titus@3116
     5
 #ifndef __BFD_H_SEEN__
titus@3116
     6
 #define __BFD_H_SEEN__
titus@3116
     7
 
titus@3116
     8
+#include <sys/stat.h>
titus@3116
     9
+
titus@3116
    10
 #ifdef __cplusplus
titus@3116
    11
 extern "C" {
titus@3116
    12
 #endif
titus@3116
    13
@@ -308,8 +310,6 @@
titus@3116
    14
    && (sec)->sec_info_type != ELF_INFO_TYPE_MERGE		\
titus@3116
    15
    && (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
titus@3116
    16
 
titus@3116
    17
-/* Forward define.  */
titus@3116
    18
-struct stat;
titus@3116
    19
 
titus@3116
    20
 typedef enum bfd_print_symbol
titus@3116
    21
 {
titus@3116
    22
diff -ur binutils-2.22.org/bfd/bfd-in.h binutils-2.22/bfd/bfd-in.h
titus@3116
    23
--- binutils-2.22.org/bfd/bfd-in.h	2011-09-16 03:15:18.000000000 +0200
titus@3116
    24
+++ binutils-2.22/bfd/bfd-in.h	2012-11-03 18:24:43.397783645 +0100
titus@3116
    25
@@ -25,6 +25,8 @@
titus@3116
    26
 #ifndef __BFD_H_SEEN__
titus@3116
    27
 #define __BFD_H_SEEN__
titus@3116
    28
 
titus@3116
    29
+#include <sys/stat.h>
titus@3116
    30
+
titus@3116
    31
 #ifdef __cplusplus
titus@3116
    32
 extern "C" {
titus@3116
    33
 #endif
titus@3116
    34
@@ -301,8 +303,6 @@
titus@3116
    35
    && (sec)->sec_info_type != ELF_INFO_TYPE_MERGE		\
titus@3116
    36
    && (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
titus@3116
    37
 
titus@3116
    38
-/* Forward define.  */
titus@3116
    39
-struct stat;
titus@3116
    40
 
titus@3116
    41
 typedef enum bfd_print_symbol
titus@3116
    42
 {