PR gas/2623
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
7a8757b3
AM
12007-02-27 Alan Modra <amodra@bigpond.net.au>
2
3 * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
4 * elf32-spu.c (ovl_mgr_pread): Add const to casts.
5
024b2372
CD
62007-02-23 Carlos O'Donell <carlos@codesourcery.com>
7
8 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
9 DWARF even with 64-bit addresses.
10 (_bfd_dwarf2_find_nearest_line): Likewise.
11
cb3ff1e5
NC
122007-02-23 Nick Clifton <nickc@redhat.com>
13
14 PR binutils/3535
15 * elf.c (copy_private_bfd_data): Always rewrite the program
16 headers when a Solaris interpreter segment is involved.
17
6a5bb875
PB
182007-02-22 Paul Brook <paul@codesourcery.com>
19
20 * elflink.c (gc_mark_hook_fn): Remove.
21 (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
22 (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
23 * elf-bfd.h (elf_gc_mark_hook_fn): Define.
24 (elf_backend_data): Add gc_mark_extra_sections.
25 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
26 definition.
27 (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
28 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
29 (elf_backend_gc_mark_extra_sections): Define.
30
2889e75b
NC
312007-02-21 Nick Clifton <nickc@redhat.com>
32
33 * elf.c (_bfd_elf_map_sections_to_segments): If the
34 override_segment_assignment callback is defined then call it.
35
78859468
AM
362007-02-21 Alan Modra <amodra@bigpond.net.au>
37
38 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
39
ae0d2616
TS
402007-02-19 Thiemo Seufer <ths@mips.com>
41
42 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
43 translation marker from untranslatable strings.
44
6bfdb61b
AM
452007-02-19 Alan Modra <amodra@bigpond.net.au>
46
47 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
48 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
49 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
50 (elfNN_bed): Init new field.
51 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
52
92f01d61
JM
532007-02-17 Mark Mitchell <mark@codesourcery.com>
54 Nathan Sidwell <nathan@codesourcery.com>
55 Vladimir Prus <vladimir@codesourcery.com
56 Joseph Myers <joseph@codesourcery.com>
57
58 * configure.in (--with-pkgversion): New option.
59 * configure: Regenerate.
60 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
61 * Makefile.in: Regenerate.
62 * version.h (BFD_VERSION_STRING): Define using
63 @bfd_version_package@.
64
c0e3f241
CD
652007-02-16 Carlos O'Donell <carlos@codesourcery.com>
66
67 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
68 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
69 and EF_MIPS_UCODE.
70
72f6ea61
AM
712007-02-15 Alan Modra <amodra@bigpond.net.au>
72
73 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
74 declare.
75 (_bfd_norelocs_canonicalize_reloc): Likewise.
76 * libbfd.h: Regenerate.
77 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
78 (_bfd_norelocs_canonicalize_reloc): Likewise.
79 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
80 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
81 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
82 * ihex.c: Similarly.
83 * mach-o-target.c: Similarly.
84 * mach-o.c: Similarly.
85 * mmo.c: Similarly.
86 * pef.c: Similarly.
87 * ppcboot.c: Similarly.
88 * srec.c: Similarly.
89 * xsym.c: Similarly.
90
fab4a87f
L
912007-02-14 H.J. Lu <hongjiu.lu@intel.com>
92
93 PR ld/3953
94 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
95 when adding default symbol.
96
e4e0193e
AM
972007-02-13 Alan Modra <amodra@bigpond.net.au>
98
99 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
100 for branch lookup table.
101
84f5d08e
AM
1022007-02-12 Alan Modra <amodra@bigpond.net.au>
103
104 * elf64-ppc.c (create_linkage_sections): Don't create
105 .rela.rodata.brlt for --emit-relocs.
106 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
107 (ppc_size_one_stub): Count them. Simplify test of stub type
108 when counting stub relocs. Set SEC_RELOC too.
109 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
110 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
111
4aac632e
AM
1122007-02-12 Alan Modra <amodra@bigpond.net.au>
113
114 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
115 with a zero symbol index.
116
8da3dbc5
AM
1172007-02-12 Alan Modra <amodra@bigpond.net.au>
118
119 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
120
b31847af
DB
1212007-02-05 Dave Brolley <brolley@redhat.com>
122 Stan Cox <scox@redhat.com>
123
124 PR ld/3972
125 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
126
722b0ff7 1272007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
128 Richard Sandiford <rsandifo@redhat.com>
129 Stan Cox <scox@redhat.com>
130 Nick Clifton <nickc@redhat.com>
131 DJ Delorie <dj@redhat.com>
132 Frank Ch. Eigler <fche@redhat.com>
133 Ben Elliston <bje@redhat.com>
134 Richard Henderson <rth@redhat.com>
135
136 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
137 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
138 (BFD32_BACKENDS): Add elf32-mep.lo.
139 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
140 (cpu-mep.lo,elf32-mep.lo): New targets.
141 * archures.c (bfd_arch_mep): New enumerator.
142 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
143 (bfd_mep_arch): New external variable.
144 (bfd_archures_list): Add bfd_mep_arch.
145 * config.bfd: Support mep-*-elf.
146 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
147 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
148 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
149 declarations.
150 (_bfd_target_vector): Add bfd_elf32_mep_vec and
151 bfd_elf32_mep_little_vec.
722b0ff7
DB
152 * mep-relocs.pl: New file.
153 * cpu-mep.c: New file.
154 * elf32-mep.c: New file.
155 * bfd-in2.h: Regenerate.
e382d174 156 * po/POTFILES.in: Regenerate.
722b0ff7
DB
157 * libbfd.h: Regenerate.
158 * Makefile.in: Regenerate.
159 * configure: Regenerate.
160
d9352518
DB
1612007-02-05 Dave Brolley <brolley@redhat.com>
162
163 * elflink.c (evaluate_complex_relocation_symbols): Check for
164 STT_SRELC for global symbols.
165 (perform_complex_relocations): Renamed to
166 perform_complex_relocation and now examines only one relocation.
167 (elf_link_input_bfd): Don't call perform_complex_relocations.
74e880a7 168 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
d9352518
DB
169 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
170 (OD,OS,OU): #undefs corrected to N, S and U repectively.
171 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
172 (complex_reloc_installation_howto): Removed.
173 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
174 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
175
d9352518 1762007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
177 Richard Sandiford <rsandifo@redhat.com>
178 DJ Delorie <dj@redhat.com>
179 Graydon Hoare <graydon@redhat.com>
180 Nick Clifton <nickc@cambridge.redhat.com>
181 Jeff Holcomb <jeffh@redhat.com>
182 Frank Ch. Eigler <fche@redhat.com>
183
184 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
185 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
186 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
187 * elflink.c (set_symbolValue): New static function.
d9352518
DB
188 (resolve_symbol): Likewise.
189 (resolve_section): Likewise.
190 (undefined_reference): Likewise.
191 (eval_symbol): Likewise.
192 (evaluate_complex_relocation_symbols): Likewise.
193 (put_value): Likewise.
194 (get_value): Likewise.
e382d174
DB
195 (decode_complex_addend):
196 (bfd_elf_perform_complex_relocation): New function.
197 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
198 * reloc.c (BFD_RELOC_RELC): New relocation number.
199 * syms.c (BSF_RELC,BSF_SRELC): New macros.
d9352518 200
f1ab2340 2012007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 202
f1ab2340
BW
203 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
204 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
205 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
206 (elf_xtensa_allocate_got_size): Replace these with...
207 (elf_xtensa_allocate_dynrelocs): ...this new function.
208 (elf_xtensa_size_dynamic_sections): Use it.
74e880a7 209
e5f131d1 2102007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 211
e5f131d1
BW
212 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
213 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
214 Set src_mask to zero.
215 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
216 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
74e880a7 217
4608f3d9
BW
2182007-02-02 Bob Wilson <bob.wilson@acm.org>
219
220 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
221 (elf_xtensa_dynamic_symbol_p): ...this.
222
f0e6fdb2
BW
2232007-02-02 Bob Wilson <bob.wilson@acm.org>
224
225 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
226 (struct elf_xtensa_link_hash_table): New.
227 (elf_xtensa_hash_table): New.
228 (elf_xtensa_link_hash_table_create): New.
229 (elf_xtensa_check_relocs): Update plt_reloc_count references.
230 Update arguments to add_extra_plt_sections.
231 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
232 table. Update for plt_reloc_count and add_extra_plt_sections.
233 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
234 argument with link info. Update calls to elf_xtensa_get_plt_section
235 and elf_xtensa_get_gotplt_section.
236 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
237 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
238 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
239 (relax_property_section): Get sections from the hash table and update
240 function calls.
241 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
242 dynobj argument with link info. Get sections for first plt chunk from
243 the hash table.
244 (bfd_elf32_bfd_link_hash_table_create): Define.
245
c15f73f9
JJ
2462007-02-02 Jakub Jelinek <jakub@redhat.com>
247
248 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
249 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
250 (struct elf_symbol): Change first member into union.
251 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
252 internal syms. Only compare st_shndx fields.
253 (elf_create_symbuf): New function.
254 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
255 for bfds, use a binary search, otherwise don't qsort symbols
256 unnecessarily only to select which symbols are for the particular
257 shndx.
258
effdf42a
NC
2592007-02-01 Nick Clifton <nickc@redhat.com>
260
261 PR ld/3852
262 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
263 in the elf_link_hash_table structure.
264
183e98be
AM
2652007-02-01 Alan Modra <amodra@bigpond.net.au>
266
267 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
268 * elfxx-target.h (elf_backend_write_core_note): Define and use.
269 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
270 32-bit core note on 64-bit target.
271 (elfcore_write_prstatus): Likewise.
272 (elfcore_write_lwpstatus): Make note_name const.
273 (elfcore_write_prfpreg): Likewise.
274 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
275 target.
276 * elf32-ppc.c (ppc_elf_write_core_note): New function.
277 (elf_backend_write_core_note): Define.
278 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
279 (elf_backend_write_core_note): Define.
280
fc523535 2812007-01-31 H.J. Lu <hongjiu.lu@intel.com>
16cecee5
L
282
283 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
284 (elf32_bed): Defined for elf32-us-cris.
285
286 * elf64-sh64.c (elf64_bed): Defined for Linux.
287 (INCLUDED_TARGET_FILE): Removed.
288
289 * elfxx-target.h (elfNN_bed): Always define. Don't check
290 INCLUDED_TARGET_FILE.
291
c9b57b7e
DD
2922007-01-31 DJ Delorie <dj@redhat.com>
293
294 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
295 message for dangerous relocs, special case the common user error.
296
53020534
L
2972007-01-30 H.J. Lu <hongjiu.lu@intel.com>
298
299 * elf.c (copy_elf_program_header): Start from the first section
300 in a segment and stop when all sections in a segment are
301 accounted for.
302
c7b8f16e
JB
3032007-01-29 Julian Brown <julian@codesourcery.com>
304
305 * bfd-in2.h: Regenerate.
306 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
307 instruction scanning should be done.
308 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
309 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
310 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
311 prototype.
312 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
313 argument.
314 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
315 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
316 (elf32_vfp11_erratum_type): New enum.
317 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
318 veneers.
319 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
320 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
321 vfp11_fix and num_vfp11_fixes fields.
322 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
323 vfp11_erratum_glue_size, num_vfp11_fixes fields.
324 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
325 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
326 glue section.
327 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
328 to a section's map.
329 (record_vfp11_erratum_veneer): Create a single veneer, and its
330 associated symbols.
331 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
332 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
333 BFDs.
334 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
335 required.
336 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
337 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
338 (bfd_arm_vfp11_write_mask): Update write mask according to coded
339 register number.
340 (bfd_arm_vfp11_antidependency): New function.
341 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
342 (elf32_arm_compare_mapping): Declare.
343 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
344 BFD for potential erratum-triggering insns. Record results.
345 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
346 and branches to veneers have been placed in virtual memory after
347 layout.
348 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
349 hash table.
350 (elf32_arm_output_symbol_hook): Remove.
351 (elf32_arm_write_section): Output veneers, and branches to veneers.
352 Use maps from input sections, not output sections, for code
353 byte-swapping.
354 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
355 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
356 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
357 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
358
3592007-01-27 H.J. Lu <hongjiu.lu@intel.com>
83d1651b
L
360
361 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
b8210914 362 (INCLUDED_TARGET_FILE): Removed.
83d1651b 363
914dfb0f
DA
3642007-01-27 Mike Frysinger <vapier@gentoo.org>
365
366 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
367 (INCLUDED_TARGET_FILE): Remove.
368
78eba9b6
DD
3692007-01-25 DJ Delorie <dj@redhat.com>
370
371 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
372 R_M32C_16 or R_M32C_24 relocs.
373
64ee10b6
NC
3742007-01-25 Nick Clifton <nickc@redhat.com>
375
376 PR binutils/3874
377 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
378 hash table was created by elf32_avr_link_hash_table_create before
379 using it.
380 (elf32_avr_link_hash_newfunc): New function. Just pass the call
381 through to _bfd_elf_link_hash_newfunc.
382 (elf32_avr_link_hash_table_create): Use
383 elf32_avr_link_hash_newfunc instead of
384 _bfd_elf_link_hash_newfunc.
385 (elf32_avr_relocate_section): Check for the hash table pointer
386 being NULL.
387 (elf32_avr_relax_section, avr_build_one_stub,
388 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
389 elf32_avr_build_stubs): Likewise.
390
40b36307
L
3912007-01-16 H.J. Lu <hongjiu.lu@intel.com>
392
393 PR ld/3831
394 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
395 argument, Elf_Internal_Sym *.
396
397 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
398 symbol dynamic if info->dynamic_data is TRUE.
399 (bfd_elf_record_link_assignment): Updated call to
400 bfd_elf_record_link_assignment.
401 (_bfd_elf_merge_symbol): Likewise. Always call
402 bfd_elf_link_mark_dynamic_symbol.
403
fc523535 4042007-01-12 H.J. Lu <hongjiu.lu@intel.com>
a454209d
L
405
406 * Makefile.am (BFD_LIBS): Removed.
407 * Makefile.in: Regenerated.
408
fc523535 4092007-01-11 H.J. Lu <hongjiu.lu@intel.com>
21e40a48
L
410
411 PR binutils/3631
412 * Makefile.am (OFILES): Add @bfd64_libs@.
413 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
414 * Makefile.in: Regenerated.
415
416 * configure.in (bfd_libs): Replaced by ...
417 (bfd64_libs): This.
418 * configure: Regenerated.
419
59e0647f
NS
4202007-01-11 Nathan Sidwell <nathan@codesourcery.com>
421
422 * elf.c (assign_file_positions_for_load_sections): We can
423 require fewer phdrs than expected.
424
3bdcfdf4
KH
4252007-01-08 Kazu Hirata <kazu@codesourcery.com>
426
427 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
428 * bfd-in2.h: Regenerate.
429 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
430 bfd_mach_cpu32_fido.
431 (m68k_arch_features): Use fido_a instead of cpu32.
432 (bfd_m68k_compatible): Reject the combination of Fido and
433 ColdFire. Accept the combination of CPU32 and Fido with a
434 warning.
435 * elf32-m68k.c (elf32_m68k_object_p,
436 elf32_m68k_merge_private_bfd_data,
437 elf32_m68k_print_private_bfd_data): Treat Fido as an
438 architecture by itself.
439
42037fe5
NC
4402007-01-08 Kai Tietz <kai.tietz@onevision.com>
441
442 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
443
ebe8b991
JJ
4442007-01-05 Jakub Jelinek <jakub@redhat.com>
445
446 * texhex.c (first_phase): Don't fall through into the default
447 case.
448 (pass_over): Replace abort () calls with return FALSE. Fix
449 buffer overflow.
450
b327f31f
AM
4512007-01-04 Jie Zhang <jie.zhang@analog.com>
452
453 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
454 SEC_EXCLUDE on zero size .eh_frame.
455
10a2343e 456For older changes see ChangeLog-2006
56882138
AM
457\f
458Local Variables:
459mode: change-log
460left-margin: 8
461fill-column: 74
462version-control: never
463End:
This page took 0.405869 seconds and 4 git commands to generate.