1 --- gdb-7.5/bfd/section.c 2012-06-29 16:46:03.000000000 +0200
2 +++ gdb-7.6/bfd/section.c 2013-01-26 03:08:01.000000000 +0100
4 .{* These sections are global, and are managed by BFD. The application
5 . and target back end are not permitted to change the values in
7 -.extern asection std_section[4];
8 +.extern asection _bfd_std_section[4];
10 .#define BFD_ABS_SECTION_NAME "*ABS*"
11 .#define BFD_UND_SECTION_NAME "*UND*"
13 .#define BFD_IND_SECTION_NAME "*IND*"
15 .{* Pointer to the common section. *}
16 -.#define bfd_com_section_ptr (&std_section[0])
17 +.#define bfd_com_section_ptr (&_bfd_std_section[0])
18 .{* Pointer to the undefined section. *}
19 -.#define bfd_und_section_ptr (&std_section[1])
20 +.#define bfd_und_section_ptr (&_bfd_std_section[1])
21 .{* Pointer to the absolute section. *}
22 -.#define bfd_abs_section_ptr (&std_section[2])
23 +.#define bfd_abs_section_ptr (&_bfd_std_section[2])
24 .{* Pointer to the indirect section. *}
25 -.#define bfd_ind_section_ptr (&std_section[3])
26 +.#define bfd_ind_section_ptr (&_bfd_std_section[3])
28 .#define bfd_is_und_section(sec) ((sec) == bfd_und_section_ptr)
29 .#define bfd_is_abs_section(sec) ((sec) == bfd_abs_section_ptr)
33 #define STD_SECTION(NAME, IDX, FLAGS) \
34 - BFD_FAKE_SECTION(std_section[IDX], FLAGS, &global_syms[IDX], NAME, IDX)
35 + BFD_FAKE_SECTION(_bfd_std_section[IDX], FLAGS, &global_syms[IDX], NAME, IDX)
37 -asection std_section[] = {
38 +asection _bfd_std_section[] = {
39 STD_SECTION (BFD_COM_SECTION_NAME, 0, SEC_IS_COMMON),
40 STD_SECTION (BFD_UND_SECTION_NAME, 1, 0),
41 STD_SECTION (BFD_ABS_SECTION_NAME, 2, 0),
42 --- gdb-7.5.0.20120926/bfd/bfd-in2.h 2012-07-13 17:47:23.000000000 +0200
43 +++ gdb-7.6/bfd/bfd-in2.h 2013-02-27 22:39:18.000000000 +0100
45 /* These sections are global, and are managed by BFD. The application
46 and target back end are not permitted to change the values in
48 -extern asection std_section[4];
49 +extern asection _bfd_std_section[4];
51 #define BFD_ABS_SECTION_NAME "*ABS*"
52 #define BFD_UND_SECTION_NAME "*UND*"
53 @@ -1555,13 +1583,13 @@
54 #define BFD_IND_SECTION_NAME "*IND*"
56 /* Pointer to the common section. */
57 -#define bfd_com_section_ptr (&std_section[0])
58 +#define bfd_com_section_ptr (&_bfd_std_section[0])
59 /* Pointer to the undefined section. */
60 -#define bfd_und_section_ptr (&std_section[1])
61 +#define bfd_und_section_ptr (&_bfd_std_section[1])
62 /* Pointer to the absolute section. */
63 -#define bfd_abs_section_ptr (&std_section[2])
64 +#define bfd_abs_section_ptr (&_bfd_std_section[2])
65 /* Pointer to the indirect section. */
66 -#define bfd_ind_section_ptr (&std_section[3])
67 +#define bfd_ind_section_ptr (&_bfd_std_section[3])
69 #define bfd_is_und_section(sec) ((sec) == bfd_und_section_ptr)
70 #define bfd_is_abs_section(sec) ((sec) == bfd_abs_section_ptr)