GNU Binutils with patches for OS216
Revision | 8cb5eb316c35daaede8a2b72ae994c7b2df152d9 (tree) |
---|---|
Zeit | 1991-03-23 08:02:38 |
Autor | Steve Chamberlain <steve@cygn...> |
Commiter | Steve Chamberlain |
Brought up to sync with Intel again.
@@ -22,12 +22,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
22 | 22 | $Id$ |
23 | 23 | |
24 | 24 | $Log$ |
25 | - Revision 1.1.1.1 1991/03/21 21:28:20 gumby | |
26 | - Back from Intel with Steve | |
25 | + Revision 1.2 1991/03/22 23:02:28 steve | |
26 | + Brought up to sync with Intel again. | |
27 | 27 | |
28 | - * Revision 1.1 1991/03/21 21:28:19 gumby | |
29 | - * Initial revision | |
30 | - * | |
31 | 28 | * Revision 1.1 1991/03/13 00:48:09 chrisb |
32 | 29 | * Initial revision |
33 | 30 | * |
@@ -20,11 +20,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
20 | 20 | * $Id$ |
21 | 21 | * |
22 | 22 | * $Log$ |
23 | - * Revision 1.1.1.1 1991/03/21 21:28:25 gumby | |
24 | - * Back from Intel with Steve | |
25 | - * | |
26 | - * Revision 1.1 1991/03/21 21:28:24 gumby | |
27 | - * Initial revision | |
23 | + * Revision 1.2 1991/03/22 23:02:29 steve | |
24 | + * Brought up to sync with Intel again. | |
28 | 25 | * |
29 | 26 | * Revision 1.2 1991/03/15 18:45:55 rich |
30 | 27 | * foo |
@@ -20,12 +20,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
20 | 20 | $Id$ |
21 | 21 | |
22 | 22 | $Log$ |
23 | - Revision 1.1.1.1 1991/03/21 21:28:27 gumby | |
24 | - Back from Intel with Steve | |
23 | + Revision 1.2 1991/03/22 23:02:30 steve | |
24 | + Brought up to sync with Intel again. | |
25 | 25 | |
26 | - * Revision 1.1 1991/03/21 21:28:26 gumby | |
27 | - * Initial revision | |
28 | - * | |
29 | 26 | * Revision 1.3 1991/03/16 22:27:24 rich |
30 | 27 | * fish |
31 | 28 | * |
@@ -20,12 +20,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
20 | 20 | $Id$ |
21 | 21 | |
22 | 22 | $Log$ |
23 | - Revision 1.1.1.1 1991/03/21 21:28:29 gumby | |
24 | - Back from Intel with Steve | |
23 | + Revision 1.2 1991/03/22 23:02:31 steve | |
24 | + Brought up to sync with Intel again. | |
25 | 25 | |
26 | - * Revision 1.1 1991/03/21 21:28:28 gumby | |
27 | - * Initial revision | |
28 | - * | |
29 | 26 | * Revision 1.2 1991/03/15 18:45:55 rich |
30 | 27 | * foo |
31 | 28 | * |
@@ -204,6 +201,7 @@ lnk960_after_allocation() | ||
204 | 201 | { |
205 | 202 | lang_abs_symbol_at_end_of(".text","_etext"); |
206 | 203 | lang_abs_symbol_at_end_of(".data","_edata"); |
204 | + lang_abs_symbol_at_beginning_of(".bss","_bss_start"); | |
207 | 205 | lang_abs_symbol_at_end_of(".bss","_end"); |
208 | 206 | } |
209 | 207 |
@@ -19,8 +19,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
19 | 19 | /* $Id$ |
20 | 20 | * |
21 | 21 | * $Log$ |
22 | - * Revision 1.1 1991/03/21 21:28:45 gumby | |
23 | - * Initial revision | |
22 | + * Revision 1.2 1991/03/22 23:02:34 steve | |
23 | + * Brought up to sync with Intel again. | |
24 | 24 | * |
25 | 25 | * Revision 1.3 1991/03/16 22:19:21 rich |
26 | 26 | * pop |
@@ -731,8 +731,13 @@ char *target; | ||
731 | 731 | static void |
732 | 732 | lang_reasonable_defaults() |
733 | 733 | { |
734 | + | |
735 | + lang_output_section_statement_lookup(".text"); | |
736 | + lang_output_section_statement_lookup(".data"); | |
737 | + | |
734 | 738 | default_common_section = |
735 | 739 | lang_output_section_statement_lookup(".bss"); |
740 | + | |
736 | 741 | if (placed_commons == false) { |
737 | 742 | lang_wild_statement_type *new = |
738 | 743 | new_stat(lang_wild_statement, |
@@ -741,6 +746,7 @@ lang_reasonable_defaults() | ||
741 | 746 | new->filename = (char *)NULL; |
742 | 747 | lang_list_init(&new->children); |
743 | 748 | } |
749 | + | |
744 | 750 | } |
745 | 751 | |
746 | 752 | static void lang() |
@@ -2152,6 +2158,26 @@ char *memspec; | ||
2152 | 2158 | } |
2153 | 2159 | |
2154 | 2160 | void |
2161 | +lang_abs_symbol_at_beginning_of(section, name) | |
2162 | +char *section; | |
2163 | +char *name; | |
2164 | +{ | |
2165 | + extern bfd *output_bfd; | |
2166 | + extern asymbol *create_symbol(); | |
2167 | + asection *s = bfd_get_section_by_name(output_bfd, section); | |
2168 | + asymbol *def = create_symbol(name, | |
2169 | + BSF_GLOBAL | BSF_EXPORT | | |
2170 | + BSF_ABSOLUTE, | |
2171 | + (asection *)NULL); | |
2172 | + if (s != (asection *)NULL) { | |
2173 | + def->value = s->vma; | |
2174 | + } | |
2175 | + else { | |
2176 | + def->value = 0; | |
2177 | + } | |
2178 | +} | |
2179 | + | |
2180 | +void | |
2155 | 2181 | lang_abs_symbol_at_end_of(section, name) |
2156 | 2182 | char *section; |
2157 | 2183 | char *name; |
@@ -22,8 +22,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
22 | 22 | * $Id$ |
23 | 23 | * |
24 | 24 | * $Log$ |
25 | - * Revision 1.1 1991/03/21 21:28:52 gumby | |
26 | - * Initial revision | |
25 | + * Revision 1.2 1991/03/22 23:02:36 steve | |
26 | + * Brought up to sync with Intel again. | |
27 | 27 | * |
28 | 28 | * Revision 1.1 1991/03/13 00:48:27 chrisb |
29 | 29 | * Initial revision |
@@ -181,7 +181,7 @@ main (argc, argv) | ||
181 | 181 | command_line.force_common_definition = false; |
182 | 182 | |
183 | 183 | ldfile_add_arch(""); |
184 | - | |
184 | + ldfile_add_library_path("./"); | |
185 | 185 | config.make_executable = true; |
186 | 186 | force_make_executable = false; |
187 | 187 |
@@ -20,8 +20,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
20 | 20 | * $Id$ |
21 | 21 | * |
22 | 22 | * $Log$ |
23 | - * Revision 1.1 1991/03/21 21:28:55 gumby | |
24 | - * Initial revision | |
23 | + * Revision 1.2 1991/03/22 23:02:37 steve | |
24 | + * Brought up to sync with Intel again. | |
25 | 25 | * |
26 | 26 | * Revision 1.2 1991/03/15 18:45:55 rich |
27 | 27 | * foo |
@@ -20,11 +20,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
20 | 20 | * $Id$ |
21 | 21 | * |
22 | 22 | * $Log$ |
23 | - * Revision 1.1.1.1 1991/03/21 21:28:58 gumby | |
24 | - * Back from Intel with Steve | |
25 | - * | |
26 | - * Revision 1.1 1991/03/21 21:28:58 gumby | |
27 | - * Initial revision | |
23 | + * Revision 1.2 1991/03/22 23:02:38 steve | |
24 | + * Brought up to sync with Intel again. | |
28 | 25 | * |
29 | 26 | * Revision 1.1 1991/03/13 00:48:32 chrisb |
30 | 27 | * Initial revision |