Ticket #65985: patch-cctools-private-extern.diff

File patch-cctools-private-extern.diff, 7.7 KB (added by kencu (Ken), 2 years ago)
  • include/stuff/allocate.h

    diff --git include/stuff/allocate.h include/stuff/allocate.h
    index 2c61b7b..b228a18 100644
     
    2424#define __private_extern__ __declspec(private_extern)
    2525#endif
    2626
     27#if defined(__GNUC__) && !defined(__private_extern__)
     28#define __private_extern__ __attribute__((visibility("hidden")))
     29#endif
     30
    2731/* defined in allocate.c */
    2832
    2933__private_extern__ void *allocate(
  • include/stuff/arch.h

    diff --git include/stuff/arch.h include/stuff/arch.h
    index 51e444f..95479fc 100644
     
    2626#if defined(__MWERKS__) && !defined(__private_extern__)
    2727#define __private_extern__ __declspec(private_extern)
    2828#endif
     29
     30#if defined(__GNUC__) && !defined(__private_extern__)
     31#define __private_extern__ __attribute__((visibility("hidden")))
     32#endif
     33
    2934/*
    3035 * This file contains the current known set of flags and constants for the
    3136 * known architectures.
  • include/stuff/best_arch.h

    diff --git include/stuff/best_arch.h include/stuff/best_arch.h
    index 627aa5f..bb1bde3 100644
     
    2424#define __private_extern__ __declspec(private_extern)
    2525#endif
    2626
     27#if defined(__GNUC__) && !defined(__private_extern__)
     28#define __private_extern__ __attribute__((visibility("hidden")))
     29#endif
     30
    2731#include <mach/machine.h>
    2832#include <stuff/bool.h>
    2933
  • include/stuff/breakout.h

    diff --git include/stuff/breakout.h include/stuff/breakout.h
    index 211d792..9151f81 100644
     
    2424#define __private_extern__ __declspec(private_extern)
    2525#endif
    2626
     27#if defined(__GNUC__) && !defined(__private_extern__)
     28#define __private_extern__ __attribute__((visibility("hidden")))
     29#endif
     30
    2731#import "stuff/ofile.h"
    2832
    2933/*
  • include/stuff/bytesex.h

    diff --git include/stuff/bytesex.h include/stuff/bytesex.h
    index c5d5ab1..d693634 100644
     
    3333#define __private_extern__ __declspec(private_extern)
    3434#endif
    3535
     36#if defined(__GNUC__) && !defined(__private_extern__)
     37#define __private_extern__ __attribute__((visibility("hidden")))
     38#endif
     39
    3640#include <mach-o/fat.h>
    3741#include <mach-o/loader.h>
    3842#include <mach/m68k/thread_status.h>
  • include/stuff/errors.h

    diff --git include/stuff/errors.h include/stuff/errors.h
    index a2da7ce..9a67a25 100644
     
    2727 */
    2828#import "mach/mach.h"
    2929
     30#if defined(__GNUC__) && !defined(__private_extern__)
     31#define __private_extern__ __attribute__((visibility("hidden")))
     32#endif
     33
    3034/* user defined (imported) */
    3135extern char *progname __attribute__((visibility("hidden")));
    3236
  • include/stuff/execute.h

    diff --git include/stuff/execute.h include/stuff/execute.h
    index e4987ac..c00eef8 100644
     
    2424#define __private_extern__ __declspec(private_extern)
    2525#endif
    2626
     27#if defined(__GNUC__) && !defined(__private_extern__)
     28#define __private_extern__ __attribute__((visibility("hidden")))
     29#endif
     30
    2731/*
    2832 * execute() does an execvp using the argv passed to it.  If the parameter
    2933 * verbose is non-zero the command is printed to stderr.  A non-zero return
  • include/stuff/hash_string.h

    diff --git include/stuff/hash_string.h include/stuff/hash_string.h
    index 4ef3ff9..8dc66ba 100644
     
    2424#define __private_extern__ __declspec(private_extern)
    2525#endif
    2626
     27#if defined(__GNUC__) && !defined(__private_extern__)
     28#define __private_extern__ __attribute__((visibility("hidden")))
     29#endif
     30
    2731__private_extern__ int32_t hash_string(
    2832    char *key);
  • include/stuff/hppa.h

    diff --git include/stuff/hppa.h include/stuff/hppa.h
    index 757a16d..aa1efe5 100644
     
    2424#define __private_extern__ __declspec(private_extern)
    2525#endif
    2626
     27#if defined(__GNUC__) && !defined(__private_extern__)
     28#define __private_extern__ __attribute__((visibility("hidden")))
     29#endif
     30
    2731__private_extern__ void calc_hppa_HILO(
    2832    uint32_t base,
    2933    uint32_t offset,
  • include/stuff/llvm.h

    diff --git include/stuff/llvm.h include/stuff/llvm.h
    index 9f94ba1..3ba9a3b 100644
     
    33
    44#include "llvm-c/Disassembler.h"
    55
     6#if defined(__GNUC__) && !defined(__private_extern__)
     7#define __private_extern__ __attribute__((visibility("hidden")))
     8#endif
     9
    610__private_extern__ LLVMDisasmContextRef llvm_create_disasm(
    711    const char *TripleName,
    812    const char *CPU,
  • include/stuff/ofile.h

    diff --git include/stuff/ofile.h include/stuff/ofile.h
    index 44b3897..8372f7d 100644
     
    2828#define __private_extern__ __declspec(private_extern)
    2929#endif
    3030
     31#if defined(__GNUC__) && !defined(__private_extern__)
     32#define __private_extern__ __attribute__((visibility("hidden")))
     33#endif
     34
    3135#import <ar.h>
    3236#ifndef AR_EFMT1
    3337#define AR_EFMT1        "#1/"           /* extended format #1 */
  • include/stuff/print.h

    diff --git include/stuff/print.h include/stuff/print.h
    index c075e99..e8a1bd3 100644
     
    2424#define __private_extern__ __declspec(private_extern)
    2525#endif
    2626
     27#if defined(__GNUC__) && !defined(__private_extern__)
     28#define __private_extern__ __attribute__((visibility("hidden")))
     29#endif
     30
    2731#import <stdarg.h>
    2832
    2933__private_extern__ void print(
  • include/stuff/reloc.h

    diff --git include/stuff/reloc.h include/stuff/reloc.h
    index 0922d0d..67011f1 100644
     
    2424#define __private_extern__ __declspec(private_extern)
    2525#endif
    2626
     27#if defined(__GNUC__) && !defined(__private_extern__)
     28#define __private_extern__ __attribute__((visibility("hidden")))
     29#endif
     30
    2731#import <mach/machine.h>
    2832#import "stuff/bool.h"
    2933
  • include/stuff/rnd.h

    diff --git include/stuff/rnd.h include/stuff/rnd.h
    index b51fa7e..7562ccd 100644
     
    3131#define __private_extern__ __declspec(private_extern)
    3232#endif
    3333
     34#if defined(__GNUC__) && !defined(__private_extern__)
     35#define __private_extern__ __attribute__((visibility("hidden")))
     36#endif
     37
    3438/*
    3539 * rnd() rounds v to a multiple of r.
    3640 *
  • include/stuff/symbol_list.h

    diff --git include/stuff/symbol_list.h include/stuff/symbol_list.h
    index ad338bb..555b97c 100644
     
    2323#include <mach-o/nlist.h>
    2424#include <stuff/bool.h>
    2525
     26#if defined(__GNUC__) && !defined(__private_extern__)
     27#define __private_extern__ __attribute__((visibility("hidden")))
     28#endif
     29
    2630/*
    2731 * Data structures to perform selective stripping of symbol table entries.
    2832 */
  • include/stuff/unix_standard_mode.h

    diff --git include/stuff/unix_standard_mode.h include/stuff/unix_standard_mode.h
    index 7d77532..b33bd72 100644
     
    2222 */
    2323#include "stuff/bool.h"
    2424
     25#if defined(__GNUC__) && !defined(__private_extern__)
     26#define __private_extern__ __attribute__((visibility("hidden")))
     27#endif
     28
    2529__private_extern__ enum bool get_unix_standard_mode(
    2630    void);
  • include/stuff/vm_flush_cache.h

    diff --git include/stuff/vm_flush_cache.h include/stuff/vm_flush_cache.h
    index 16a2d47..f6bf27e 100644
     
    2424#define __private_extern__ __declspec(private_extern)
    2525#endif
    2626
     27#if defined(__GNUC__) && !defined(__private_extern__)
     28#define __private_extern__ __attribute__((visibility("hidden")))
     29#endif
     30
    2731#import <mach/mach.h>
    2832__private_extern__ kern_return_t vm_flush_cache(
    2933    mach_port_t target_task,
  • libstuff/crc32.c

    diff --git libstuff/crc32.c libstuff/crc32.c
    index ac361f9..c5ab7d1 100644
    static const u_int32_t crctab[] = { 
    115115
    116116#define COMPUTE(var, ch)        (var) = (var) << 8 ^ crctab[(var) >> 24 ^ (ch)]
    117117
     118#if defined(__GNUC__) && !defined(__private_extern__)
     119#define __private_extern__ __attribute__((visibility("hidden")))
     120#endif
     121
    118122__private_extern__
    119123uint32_t
    120124crc32(