Add ability for objcopy to insert new symbols into a binary.
[external/binutils.git] / binutils / NEWS
1 -*- text -*-
2
3 * Add option to objcopy to insert new symbols into a file:
4   --add-symbol <name>=[<section>:]<value>[,<flags>]
5
6 * Add support for the ARC EM/HS, and ARC600/700 architectures.
7
8 * Extend objcopy --compress-debug-sections option to support
9   --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] for ELF
10   targets.
11
12 * Add --update-section option to objcopy.
13
14 * Add --output-separator option to strings.
15
16 Changes in 2.25:
17
18 * Add --data option to strings to only print strings in loadable, initialized
19   data sections.  Change the default behaviour to be --all, but add a new
20   configure time option of --disable-default-strings-all to restore the old
21   default behaviour.
22
23 * Add --include-all-whitespace to strings.
24
25 * Add --dump-section option to objcopy.
26
27 * Add support for the Andes NDS32.
28
29 Changes in 2.24:
30
31 * Objcopy now supports wildcard characters in command line options that take
32   section names.
33
34 * Add support for Altera Nios II.
35
36 Changes in 2.23:
37
38 * Add support for the VLE extension to the PowerPC architecture.
39
40 * Add support for x64 Windows target of the delayed-load-library.
41
42 * Add support for the Renesas RL78 architecture.
43
44 Changes in 2.22:
45
46 * Add support for displaying the contents of .debug.macro sections.
47
48 * Add --preprocessor-arg option to windres to specify additional options
49   passed to preprocessor.
50
51 * Add --dwarf-start and --dwarf-end to readelf and objdump.  These are used by
52   the new Emacs mode, see dwarf-mode.el.
53
54 * Add support for the Tilera TILEPro and TILE-Gx architectures.
55
56 changes in 2.21:
57
58 * Add --interleave-width option to objcopy to allowing copying a range of
59   bytes from the input to the output with the --interleave option.
60
61 * Add support for the TMS320C6000 (TI C6X) processor family.
62
63 * Readelf can now display ARM unwind tables (.ARM.exidx / .ARM.extab) using
64   the -u / --unwind option.
65
66 * Add --dyn-syms to readelf to dump dynamic symbol table.
67
68 * A new tool - elfedit - has been added to directly manipulate ELF format
69   binaries.
70
71 * Add to dlltool .def file feature of aliasing PE internal symbol name by
72   '== <ID>' option.
73
74 * Add a new command line option -a / --addresses to addr2line to display the
75   address before function name or source filename.
76
77 * Add a new command line option -p / --pretty-print to addr2line to have
78   a more human readable output.
79
80 * The hppa/som targets can now be compiled on any host.
81
82 Changes in 2.20:
83
84 * Add support for delay importing to dlltool.  Use the --output-delaylib <file>
85   switch to create a delay-import library.  The resulting app will load the dll
86   as soon as the first function is called.  It will link to __delayLoadHelper2()
87   from the static delayimp library, which will import LoadLibraryA and
88   GetProcAddress from kernel32.
89
90 * Add a new command line option, --insn-width=WIDTH, to objdump to specify
91   number of bytes to be displayed on a single line when disassembling
92   instructions.
93
94 * Readelf can now display the relocated contents of a section as a sequence
95   of bytes via the --relocated-dump=<name|number> command line option.
96
97 * The gprof program has been given a new command line option:
98   --external-symbols-table=<filename> which reads in symbols from a specified
99   file.
100
101 * The plugin target has been added to bfd. It can load the same shared objects
102   used by gold and uses them to provide basic support for new file formats.
103
104 * The verilog memory hex dump file format is now supported as an output format
105   for objcopy.
106
107 * Add --file-alignment, --heap, --image-base, --section-alignment,
108   --stack and --subsystem command line options to objcopy, which will
109   set PE optional header.
110
111 * Option --dwarf/-W of objdump is now as flexible as readelf --debug-dump/-w.
112
113 * --as-needed now links in a dynamic library if it satisfies undefined
114   symbols in regular objects, or in other dynamic libraries.  In the
115   latter case the library is not linked if it is found in a DT_NEEDED
116   entry of one of the libraries already linked.
117
118 * Added --prefix=PREFIX and --prefix-strip=LEVEL switches to objdump to
119   add absolute paths for -S.
120
121 * Add new option --use-nul-prefixed-import-tables to dlltool to allow fall-
122   back to old import table generation with null element prefix.
123
124 * Added --identify-strict switch to cause --identify <implib> to
125   report an error when the import library is associated with
126   multiple DLLs.
127
128 * Added --identify <implib> option to dlltool, which determines the
129   name of the DLL associated with the specified <implib>.
130
131 * Support for PowerPC booke64 instructions has been removed.  The assembler no
132   longer accepts -mbooke32 or -mbooke64 and the disassembler no longer accepts
133   -Mbooke32 or -Mbooke64.  Instead, -mbooke and -Mbooke should be used.
134
135 Changes in 2.19:
136
137 * Added -wL switch to dump decoded contents of .debug_line.
138
139 * Added support for "thin" archives which contain pathnames pointing to
140   object files rather than the files themselves and which contain a
141   flattened symbol index for all objects, and archives, which have been
142   added to the archive.
143
144 * Added -F switch to objdump to include file offsets in the disassembly.
145
146 * Added -c switch to readelf to allow string dumps of archive symbol index.
147
148 * Support for SSE5 has been added to the i386 port.
149
150 * Added -p switch to readelf to allow string dumps of sections.
151
152 Changes in 2.18:
153
154 * Resolved 37 coding problems in bfd including static array overruns, null
155   pointer dereferences and use of a malloc buffer after it has been freed, as
156   revealed by static analysis donated by Coverity, Inc. (http://scan.coverity.com).
157
158 * The binutils sources are now released under version 3 of the GNU General
159   Public License.
160
161 * A new tool "windmc" has been added for some targets.  This is a message
162   compiler which attempts to be compatible with the MS version.
163
164 * Add codepage support to the windres tool.  It now supports many new
165   resource types (e.g. MANIFEST, TOOLBAR, etc).  The output generation
166   for binary files is done now via bfd itself.  The endianess problems
167   for different hosts are solved.  Dumps of .res files can now be
168   re-compiled by windres without lossing resources or compilation errors.
169   Some problems on dialog resource translations are corrected.
170
171 * Add --extract-symbol command line option to objcopy, which will
172   strip everything out of an ordinary object file or executable except
173   for its symbol table.  Files containing just symbols can be useful
174   to some OSes.
175
176 Changes in 2.17:
177
178 * Add "-x NAME" to readelf in addition to "-x NUMBER".
179
180 * Add -i and -t switches to cxxfilt.  -i disables the display of implementation
181   specific extra demangling information (if any) and -t disables the demangling
182   of types.
183
184 * Add support for the "@<file>" syntax to the command lines of all tools, so
185   that extra switches can be read from <file>.
186
187 * Add "-W/--dwarf" to objdump to display the contents of the DWARF
188   debug sections.
189
190 * Add "-t/--section-details" to readelf to display section details.
191   "-N/--full-section-name" is deprecated.
192
193 * powerpc-linux ld now supports a variant form of PLT and GOT for the security
194   conscious.  This form will automatically be chosen when ld detects that all
195   code in regular object files was generated by gcc -msecure-plt.  The old PLT
196   and GOT may be forced by a new ld option, --bss-plt.
197
198 * Add "-i/--inlines" to addr2line to print enclosing scope information
199   for inlined function chains, back to first non-inlined function.
200
201 * Add "-N/--full-section-name" to readelf to display full section name.
202
203 * Add "-M entry:<addr>" switch to objdump to specify a function entry address
204   when disassembling VAX binaries.
205
206 * Add "--globalize-symbol <name>" and "--globalize-symbols <filename>" switches
207   to objcopy to convert local symbols into global symbols.
208
209 * gprof now allows input files to have histogram records for
210   several memory ranges, provided those ranges are disjoint.
211
212 Changes in 2.16:
213
214 * Add "-g/--section-groups" to readelf to display section groups.
215
216 * objcopy recognizes two new options --strip-unneeded-symbol and
217   --strip-unneeded-symbols, namely for use together with the wildcard
218   matching the original --strip-symbol/--strip-symbols provided, but
219   retaining any symbols matching but needed by relocations.
220
221 * readelf can now display address ranges from .debug_range sections.  This
222   happens automatically when a DW_AT_range attribute is encountered.  The
223   command line switch --debug-dump=Ranges (or -wR) can also be used to display
224   the contents of the .debug_range section.
225
226 * nm and objdump now have a switch "--special-syms" to enable the displaying of
227   symbols which the target considers to be special.  By default these symbols
228   are no longer displayed.  Currently the only special symbols are the Mapping
229   symbols used by the ARM port to mark transitions between text and data and
230   between ARM and THUMB code.
231
232 * dlltool has a switch "--ext-prefix-alias <prefix>" to generate additional
233   import and export symbols with <preifx> prepended to them.
234
235 Changes in 2.15:
236
237 * objcopy for MIPS targets now accepts "-M no-aliases" as an option to the
238   disassembler to print the "raw" mips instruction mnemonic instead of some
239   pseudo instruction name.  I.E. print "daddu" or "or" instead of "move",
240   "sll" instead of "nop", etc.
241
242 * objcopy and strip can now take wildcard patterns in symbol names specified on
243   the command line provided that the --wildcard switch is used to enable them.
244
245 * readelf can now parse archives.
246
247 * objdump now accepts --debugging-tags to print the debug information in a
248   format compatible with ctags tool.
249
250 * objcopy and strip now accept --only-keep-debug to create a file containing
251   those sections that would be stripped out by --strip-debug.  The idea is that
252   this can be used in conjunction with the --add-gnu-debuglink switch to create
253   a two part program distribution - one a stripped executable and the other the
254   debugging info.
255
256 * objcopy now accepts --add-gnu-debuglink=<file> to insert a .gnu_debuglink
257   section into a (presumably stripped) executable.  This allows the debug
258   information for the file to be held in a separate file.
259
260 * BFD marks the sections .comment and .note as 'n' in the BSD/POSIX
261   single-character representation.  This can be checked by running nm
262   with the -a switch.
263
264 Changes in 2.14:
265
266 * Added --info switch to objcopy and strip.
267
268 * Support for Vitesse IQ2000 added by Red Hat.
269
270 * Added 'S' encoding to strings to allow the display of 8-bit characters.
271
272 * Added --prefix-symbols=<text>, --prefix-sections=<text> and
273   --prefix-alloc-sections=<text> to objcopy.
274
275 * readelf can handle the extensions to the DWARF2 spec used by the Unified
276   Parallel C compiler.
277
278 * BFD no longer declares a "boolean" type, to avoid clashes with other
279   headers that declare the same.  Users of BFD should replace boolean,
280   false and true, with int, 0 and 1, or define their own boolean type.
281
282 * Support for IP2K added by Denis Chertykov.
283
284 Changes in 2.13:
285
286 * Support for the Fujitsu FRV architecture added by Red Hat. Models for FR400
287   and FR500 included.
288
289 Changes in version 2.12:
290
291 * Support for Don Knuth's MMIX, by Hans-Peter Nilsson.
292
293 * size: Add --totals to display summary of sizes (Berkeley format only).
294
295 * readelf: Add --wide option to not break section header or segment listing
296   lines to fit into 80 columns.
297
298 * strings: Add --encoding to display wide character strings.  By Markus Kuhn.
299
300 * objcopy: Add --rename-section to change section names.
301
302 * readelf: Support added for DWARF 2.1 extensions.  Support added for
303   displaying the contents of .debug.macinfo sections.
304
305 * New command line switches added to objcopy to allow symbols to be kept as
306   global symbols, and also to specify files containing lists of such symbols.
307   by Honda Hiroki.
308
309 * Support for OpenRISC by Johan Rydberg.
310
311 * New command line switch to objcopy --alt-machine-code which creates a binary
312   with an alternate machine code if one is defined in the architecture
313   description.  Only supported for ELF targets.  By Alexandre Oliva.
314
315 * New command line switch to objcopy -B (or --binary-architecture) which sets
316   the architecture of the output file to the given argument.  This option only
317   makes sense, if the input target is binary.  Otherwise it is ignored.
318   By Stefan Geuken.
319
320 * Support for PDP-11 by Lars Brinkhoff.
321
322 Changes in binutils 2.11:
323
324 * Add support for ARM v5t and v5te architectures and Intel's XScale ARM
325   extenstions.
326
327 * Add --srec-len and --srec-forceS3 command line switch to objcopy.
328   By Luciano Gemme.
329
330 * Support for the MIPS32, by Anders Norlander.
331
332 * Support for the i860, by Jason Eckhardt.
333
334 * Support for CRIS (Axis Communications ETRAX series).
335
336 Changes in binutils 2.10:
337
338 * Support for 64-bit ELF on HPPA.
339
340 * New command line switch to objdump --file-start-context which shows the
341   entire file contents up to the source line first encountered for a given
342   file.
343
344 * New command line switch to objdump -M (or --disassembler-options) which takes
345   a parameter which can then be interpreted on a per-target basis by the
346   disassembler.  Used by ARM targets to select register name sets, ISA, APCS or
347   raw verions.
348
349 * objdump support for -mi386:intel which causes disassembly to be displayed
350   with intel syntax.
351
352 * New program: readelf.  This displays the contents of ELF format files,
353   regardless of target machine.
354
355 * objcopy now takes --change-section-lma, --change-section-vma, and
356   --change-section-address options.  The old --adjust-section-vma option is
357   equivalent to --change-section-address.  The other --adjust-* options are now
358   renamed to --change-*, although --adjust-* continues to work.
359
360 * objcopy has a --redefine-sym option that lets you rename symbols.
361
362 * objcopy now takes a -j/--only-section option to copy only the specified
363   sections.
364
365 * dlltool now supports the IMPORTS command.
366
367 * dlltool now takes --export-all-symbols, --no-export-all-symbols,
368   --exclude-symbols, and --no-default-excludes options.
369
370 Changes in binutils 2.9:
371
372 * Added windres program, which can be used to manipulate resources in WIN32
373   files as used on Windows 95 and Windows NT.
374
375 * The objcopy --gap-fill and --pad-to options operate on the LMA rather than
376   the VMA of the sections.
377
378 * Added S modifier to ar to not build a symbol table.
379
380 Changes in binutils 2.8:
381
382 * The objdump disassembly format has been changed, and hopefully improved.  Use
383   the new --prefix-addresses option to get the old format.  There are also new
384   --disassemble-zeroes and --no-show-raw-insn options which affect disassembler
385   output.
386
387 * Formats may now be specified as configuration triplets.  For example,
388   objdump -b i386-pc-linux.  The triplets are not passed through config.sub,
389   so they must be in canonical form.
390
391 * Added new addr2line program.  This uses the debugging information to convert
392   an address into a file name and line number within a program.
393
394 * Added --change-leading-char argument to objcopy.
395
396 * Added --weaken argument to objcopy.
397
398 * objdump --dynamic-reloc now works on ELF executables and shared libraries.
399
400 * Added --adjust-vma option to objdump.
401
402 * Added -C/--demangle option to objdump.
403
404 * Added -p/--preserve-dates option to strip and objcopy.
405
406 Changes in binutils 2.7:
407
408 * Added --enable-shared and --enable-commonbfdlib options to configure.
409
410 * Added --debugging argument to objdump and objcopy.
411
412 * Added --defined-only argument to nm.
413
414 * Added --remove-leading-char argument to objcopy.
415
416 * The objdump --line-numbers option is now meaningful with --reloc.
417
418 * Added --line-numbers option to nm.
419
420 * Added --endian/-EB/-EL option to objdump.
421
422 * Added support for Alpha OpenVMS/AXP.
423
424 Changes in binutils 2.6:
425
426 * Added -N/--strip-symbol and -K/--keep-symbol arguments to strip and objcopy.
427
428 * Added several arguments to objcopy to provide some control over how the new
429   file is laid out in memory.  Also added binary output format to BFD to permit
430   generating plain binary files.
431
432 * Added --start-address and --stop-address options to objdump.
433
434 * ar and ranlib now work on AIX.  The tools are now built by default on AIX.
435
436 Changes in binutils 2.5:
437
438 * Changed objdump -dr to dump the relocs interspersed with the assembly
439   listing, for a more useful listing of relocatable files.
440
441 * Changed objdump -d/--disassemble to only disassemble SEC_CODE sections.
442   Added -D/--disassemble-all option to disassemble all sections.
443
444 * Added --size-sort option to nm.
445
446 * strip and objcopy should now be able to handle dynamically linked ELF
447   executables.
448
449 Changes in binutils 2.4:
450
451 * Support for HP-PA (by Jeff Law), i386 Mach (by David Mackenzie), RS/6000 and
452   PowerPC (except ar and ranlib; by Ian Taylor).
453
454 * Support for Irix 5.
455
456 * Programs `strip' and `objcopy' will not attempt to write dynamically linked
457   ELF output files, since BFD currently can't create them properly.
458
459 Changes in binutils 2.3:
460
461 * A new --stabs argument has been added to objdump to dump stabs sections in
462   ELF and COFF files.
463
464 * A new program, nlmconv, has been added.  It can convert object files into
465   Novell NetWare Loadable Modules.
466
467 * The strings program has been added.
468
469 Changes in binutils 2.2:
470
471 * The 'copy' program has been renamed to 'objcopy', for consistency with
472   'objdump', and because 'copy' might more plausibly be used as a synonym for
473   'cp'.
474
475 * The new stand-alone program c++filt is a filter that converts encoded
476   (mangled) C++ assembly-level identifiers to user-level names.  (Note: This
477   may get moved to the gcc distribution.)
478
479 * nm -o on an archive now prefixes each line with the archive name, matching
480   the output from BSD nm.
481
482 * ar (and ld) can now read (but not write) BSD4.4-style archives.
483
484 * New support for H8500, Z8000, and the Hitach SH.
485
486 * Dis-assembler interface changed to allow sharing with gdb.
487
488 * There is new Elf code, but it is not yet ready for general use.
489
490 * There is the beginnings of a test suite.
491
492 Changes in binutils 2.1:
493
494 * There is now support for writing ECOFF files, so ld and the other utilities
495   should work on Risc/Ultrix and Irix.  Please let us know how well this works.
496
497 * ar now automatically creates a symbol table (a __.SYMDEF member, in the BSD
498   version), if there are any object files in the archive.  So running ranlib is
499   now redundant (unless the non-standard q command is used).  This is required
500   for Posix.2 conformance.
501
502 * The archive-reading code now reads both BSD-style and SYSV-style archives
503   independently of the selected target format.  This is to encourage people to
504   switch to SYSV-format, which has a number of advantages.
505
506 * The strip and copy programs now have options to remove debug-symbols only
507   and/or local symbols only.  They now also support long options.
508
509 \f
510 Copyright (C) 2012-2015 Free Software Foundation, Inc.
511
512 Copying and distribution of this file, with or without modification,
513 are permitted in any medium without royalty provided the copyright
514 notice and this notice are preserved.
515
516 Local variables:
517 fill-column: 79
518 End: