]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/NEWS
binutils: NEWS: Announce LoongArch changes in the 2.41 cycle
[thirdparty/binutils-gdb.git] / binutils / NEWS
CommitLineData
252b5132 1-*- text -*-
0bd09323 2
9012d781
MR
3* The MIPS port now supports the Sony Interactive Entertainment Allegrex
4 processor, used with the PlayStation Portable, which implements the MIPS
5 II ISA along with a single-precision FPU and a few implementation-specific
6 integer instructions.
7
45b8517a
NC
8* Objdump's --private option can now be used on PE format files to display the
9 fields in the file header and section headers.
fa3d73eb
IB
10
11* New versioned release of libsframe: libsframe.so.1. This release introduces
12 versioned symbols with version node name LIBSFRAME_1.0. This release also
13 updates the ABI in an incompatible way: this includes removal of
14 sframe_get_funcdesc_with_addr API, change in the behavior of
15 sframe_fre_get_ra_offset and sframe_fre_get_fp_offset APIs.
a47cd2a1
IB
16
17* SFrame Version 2 is now the default (and only) format version supported by
18 gas, ld, readelf and objdump.
45b8517a 19
96cc7918
KB
20* Add command-line option, --strip-section-headers, to objcopy and strip to
21 remove ELF section header from ELF file.
22
e5075707
PT
23* The RISC-V port now supports the following new standard extensions:
24 - Zicond (conditional zero instructions)
25 - Zfa (additional floating-point instructions)
9fdc1b15
CM
26 - Zvbb, Zvbc, Zvkg, Zvkned, Zvknh[ab], Zvksed, Zvksh, Zvkn, Zvknc, Zvkng,
27 Zvks, Zvksc, Zvkg, Zvkt (vector crypto instructions)
e5075707
PT
28
29* The RISC-V port now supports the following vendor-defined extensions:
30 - XVentanaCondOps
31
0ed3ac2f
WX
32* The LoongArch port now supports the following extensions:
33 - LSX (Loongson SIMD eXtension; 128-bit vectors)
34 - LASX (Loongson Advanced SIMD eXtension; 256-bit vectors)
35 - LVZ (Loongson Virtualization extension)
36 - LBT (Loongson Binary Translation extension)
37
38* The LoongArch disassembly output received the following tweaks:
39 - Colored output is now supported.
40 - Some pseudo-instructions are now shown in place of the canonical forms,
41 where semantics are equivalent. A disassembler option '-M no-aliases' is
42 added to disable the new behavior.
43 - Signed immediates are no longer printed with their hex representation.
44 - Unrecognized instruction words are now shown with '.word'.
45
a72b0718
NC
46Changes in 2.40:
47
c7ce51d8
NC
48* Objdump has a new command line option --show-all-symbols which will make it
49 display all symbols that match a given address when disassembling. (Normally
50 only the first symbol that matches an address is shown).
51
18bf5643
NC
52* Add --enable-colored-disassembly configure time option to enable colored
53 disassembly output by default, if the output device is a terminal. Note,
54 this configure option is disabled by default.
55
816be8d8
NC
56* DCO signed contributions are now accepted.
57
2cac01e3
FS
58* objcopy --decompress-debug-sections now supports zstd compressed debug
59 sections. The new option --compress-debug-sections=zstd compresses debug
60 sections with zstd.
61
62* addr2line and objdump --dwarf now support zstd compressed debug sections.
63
25ee24d9
NC
64* The dlltool program now accepts --deterministic-libraries and
65 --non-deterministic-libraries as command line options to control whether or
66 not it generates deterministic output libraries. If neither of these options
67 are used the default is whatever was set when the binutils were configured.
68
9968a11f
IB
69* readelf and objdump now have a newly added option --sframe which dumps the
70 SFrame section.
71
0bd09323
NC
72Changes in 2.39:
73
2c3cc81e 74* Add --no-weak/-W option to nm to make it ignore weak symbols.
60391a25 75
bed566bb
NC
76* Add an option to objdump and readelf to prevent attempts to access debuginfod
77 servers when following links.
2c3cc81e 78
260ecdce
FS
79* objcopy --weaken, --weaken-symbol, and --weaken-symbols now make ELF
80 STB_GNU_UNIQUE symbols weak.
bed566bb 81
60a3da00
AB
82* objdump now supports syntax highlighting of disassembler output for some
83 architectures. Use the --disassembler-color=MODE command line flag, with
84 mode being either off, color, or extended-color.
85
a74e1cb3
NC
86Changes in 2.38:
87
c9dcc18f
L
88* elfedit: Add --output-abiversion option to update ABIVERSION.
89
e9a0721f 90* Add support for the LoongArch instruction set.
91
b3aa80b4
NC
92* Tools which display symbols or strings (readelf, strings, nm, objdump)
93 have a new command line option which controls how unicode characters are
94 handled. By default they are treated as normal for the tool. Using
95 --unicode=locale will display them according to the current locale.
96 Using --unicode=hex will display them as hex byte values, whilst
97 --unicode=escape will display them as escape sequences. In addition
98 using --unicode=highlight will display them as unicode escape sequences
99 highlighted in red (if supported by the output device).
100
a7fd1186
FS
101* readelf -r dumps RELR relative relocations now.
102
b69c9d41
TC
103* Support for efi-app-aarch64, efi-rtdrv-aarch64 and efi-bsdrv-aarch64 has been
104 added to objcopy in order to enable UEFI development using binutils.
105
d1b69c50
FS
106* ar: Add --thin for creating thin archives. -T is a deprecated alias without
107 diagnostics. In many ar implementations -T has a different meaning, as
108 specified by X/Open System Interface.
109
51419248
NC
110Changes in 2.37:
111
047c3dbf
NL
112* The readelf tool has a new command line option which can be used to specify
113 how the numeric values of symbols are reported. --sym-base=0|8|10|16 tells
114 readelf to display the values in base 8, base 10 or base 16. A sym base of 0
115 represents the default action of displaying values under 10000 in base 10 and
116 values above that in base 16.
117
4db29512
AM
118* Binutils now requires a C99 compiler and library to build.
119
1996d0f1
NC
120* A new format has been added to the nm program. Specifying
121 --format=just-symbols (or just using -j) will tell the program to only
122 display symbol names and nothing else.
123
ca0e11aa
NC
124* A new command line --keep-section-symbols has been added to objcopy and
125 strip. This stops the removal of unused section symbols when the file is
126 copied. Removing these symbols saves space, but sometimes they are needed by
127 other tools.
128
fd5c076a
AM
129* objcopy --weaken, --weaken-symbol and --weaken-symbols now make undefined
130 symbols weak on targets that support weak symbols.
131
e38332c2
NC
132* Readelf and objdump can now display and use the contents of .debug_sup
133 sections.
134
c46b7066
NC
135* Readelf and objdump will now follow links to separate debug info files by
136 default. This behaviour can be stopped via the use of the new -wN or
137 --debug-dump=no-follow-links options for readelf and the -WN or
138 --dwarf=no-follow-links options for objdump. Also the old behaviour can be
139 restored by the use of the --enable-follow-debug-links=no configure time
140 option.
141
ca0e11aa
NC
142 The semantics of the =follow-links option have also been slightly changed.
143 When enabled, the option allows for the loading of symbol tables and string
144 tables from the separate files which can be used to enhance the information
145 displayed when dumping other sections, but it does not automatically imply
146 that information from the separate files should be displayed.
147
148 If other debug section display options are also enabled (eg
149 --debug-dump=info) then the contents of matching sections in both the main
150 file and the separate debuginfo file *will* be displayed. This is because in
151 most cases the debug section will only be present in one of the files.
152
153 If however non-debug section display options are enabled (eg --sections) then
154 the contents of matching parts of the separate debuginfo file will *not* be
155 displayed. This is because in most cases the user probably only wanted to
156 load the symbol information from the separate debuginfo file. In order to
157 change this behaviour a new command line option --process-links can be used.
158 This will allow di0pslay options to applied to both the main file and any
159 separate debuginfo files.
160
7fe1b138
FS
161* Nm has a new command line option: --quiet. This suppresses "no symbols"
162 diagnostic.
163
055bc77a
NC
164Changes in 2.36:
165
279d901e
L
166* Update elfedit and readelf with LAM_U48 and LAM_U57 support.
167
e6f6aa8d
NC
168* Nm has a new command line option: --ifunc-chars=CHARS. This specifies a
169 string of one or two characters. The first character is used as the type
170 character when displaying global ifunc symbols. The second character, if
171 present is used when displaying local ifunc symbols.
172
173 In addition a new configure time option --enable-f-for-ifunc-symbols has been
174 created, which if used will change nm's default characters for ifunc symbols
175 from i (both local and global) to F (global) and f (local).
176
f3016d6c
HC
177* The ar tool's previously unused l modifier is now used for specifying
178 dependencies of a static library. The arguments of this option
179 (or --record-libdeps long form option) will be stored verbatim in the
180 __.LIBDEP member of the archive, which the linker may read at link time.
181
0f03783c
NC
182* Readelf can now display the contents of LTO symbol table sections when asked
183 to do so via the --lto-syms command line option.
184
79bc120c
NC
185* Readelf now accepts the -C command line option to enable the demangling of
186 symbol names. In addition the --demangle=<style>, --no-demangle,
187 --recurse-limit and --no-recurse-limit options are also now availale.
188
99fabbc9
JL
189* Add support for the SHF_GNU_RETAIN ELF section flag.
190 This flag specifies that the section should not be garbage collected by the
191 linker.
192
b115b9fd
NC
193Changes in 2.35:
194
0942c7ab
NC
195* Changed readelf's display of symbol names when wide mode is not enabled.
196 If the name is too long it will be truncated and the last five characters
197 replaced with "[...]". The old behaviour of displaying 5 more characters but
198 not indicating that truncation has happened can be restored by the use of the
199 -T or --silent-truncation options.
200
bbd19b19
L
201* X86 NaCl target support is removed.
202
1b513401
NC
203* The readelf tool now has a -L or --lint or --enable-checks option which turns
204 on warning messages about possible problems with the file(s) being examined.
205 These checks include things like zero-sized sections, which are allowed by
206 the ELF standard but which nevertheless might be of concern if the user
207 was expecting them to actually contain something.
208
ae774686
NC
209Changes in 2.34:
210
301a9420
AM
211* Binutils now supports debuginfod, an HTTP server for distributing
212 ELF/DWARF debugging information as well as source code. When built with
213 debuginfod, readelf and objdump can automatically query debuginfod
214 servers for separate debug files when they otherwise cannot be found.
215 To build binutils with debuginfod, pass --with-debuginfod to configure.
216 This requires libdebuginfod, the debuginfod client library. debuginfod
217 is distributed with elfutils, starting with version 0.178. For more
218 information see https://sourceware.org/elfutils.
219
197245e3
FS
220* Add --output option to the "ar" program. This option can be used to specify
221 the output directory when extracting members from an archive.
222
64f52b3e
FS
223* Add --keep-section option to objcopy and strip. This option keeps the
224 specified section from being removed.
225
1d67fe3b
TT
226 * Add visualization of jumps inside a function by drawing an ascii character
227 graph between the address and the disassembler column. Enabled via the
228 --visualize-jumps command line option for objdump. Currently supported by
229 the x86, x86_64, and ARM targets. The output looks something like this:
230
231 c6: | | \----------> be 00 00 00 00 mov $0x0,%esi
232 cb: | | /----> 48 8b 3d 00 00 00 00 mov 0x0(%rip),%rdi # d2 <main+0xd2>
233 d2: | | | 31 c0 xor %eax,%eax
234 d4: | | | /-- e8 00 00 00 00 callq d9 <main+0xd9>
235 d9: | | | \-> bf 02 00 00 00 mov $0x2,%edi
236 de: | +-----------|----- e8 00 00 00 00 callq e3 <main+0xe3>
237 e3: | \-----------|----> 48 89 da mov %rbx,%rdx
238 e6: | | be 00 00 00 00 mov $0x0,%esi
239 eb: | \----- eb de jmp cb <main+0xcb>
240 ed: \-------------------> 48 8b 16 mov (%rsi),%rdx
241
242 Additional arguments to the --visualize-jumps option add colors to the
243 output.
244
60391a25
PB
245Changes in 2.33:
246
a1c110a3
NC
247* Add --source-comment[=<txt>] option to objdump which if present,
248 provides a prefix to source code lines displayed in a disassembly.
2c610e4b 249
fa463e9f
N
250* Add --set-section-alignment <section-name>=<align> option to objcopy to allow
251 the changing of section alignments.
252
37d0d091
JH
253* Add --verilog-data-width option to objcopy for verilog targets to control
254 width of data elements in verilog hex format.
255
514bbb0f
AV
256* Add support for the Armv8.1-M Mainline and M-profile Vector Extension (MVE)
257 instructions.
258
24841daa
NC
259* The separate debug info file options of readelf (--debug-dump=links
260 and --debug-dump=follow) and objdump (--dwarf=links and
261 --dwarf=follow-links) will now display and/or follow multiple links if
262 more than one are present in a file. (This usually happens when gcc's
263 -gsplit-dwarf option is used).
264
39f0547e
NC
265 In addition objdump's --dwarf=follow-links now also affects its other
266 display options, so that for example, when combined with --syms it will
267 cause the symbol tables in any linked debug info files to also be
268 displayed. In addition when combined with --disassemble the --dwarf=
269 follow-links option will ensure that any symbol tables in the linked
270 files are read and used when disassembling code in the main file.
7d9813f1
NA
271
272 * Add support for dumping types encoded in the Compact Type Format
273 to objdump and readelf.
274
f974f26c
NC
275Changes in 2.32:
276
af03af8f
NC
277* The addr2line, c++filt, nm and objdump tools now have a limit on the
278 maximum amount of recursion that is allowed whilst demangling strings.
279 The value for this limit is defined by the DEMANGLE_RECRUSE_LIMIT
280 constant declared in the include/demangle.h header file. At the time
69799d67 281 of writing this constant has the value of 2048.
af03af8f
NC
282
283 The --no-recurse-limit option can be used to remove the limit, restoring
284 the behaviour of earlier versions of these tools. This may be needed in
285 order to dmangle truly complicated names, but it also leaves the tools
286 vulnerable to stack exhaustion from maliciously constructed mangled names.
287
d3def5d7
MY
288* Objdump's --disassemble option can now take a parameter, specifying the
289 starting symbol for disassembly. Disassembly will continue from this
baae986a 290 symbol up to the next symbol or the end of the function.
d3def5d7 291
9108bc33
CX
292* The MIPS port now supports the Loongson 2K1000 processor which implements
293 the MIPS64r2 ISA, the Loongson-mmi ASE, Loongson-cam ASE, Loongson-ext ASE,
294 Loongson-ext2 ASE and MSA ASE instructions. Add -march=gs264e option for
295 Loongson 2K1000 processor.
296
bd782c07
CX
297* The MIPS port now supports the Loongson 3A2000/3A3000 processor which
298 implements the MIPS64r2 ISA, the Loongson-mmi ASE, Loongson-cam ASE,
299 Loongson-ext ASE and Loongson-ext2 ASE instructions. Add -march=gs464e
300 option for Loongson 3A2000/3A3000 processor.
301
ac8cb70f
CX
302* The MIPS port now supports the Loongson 3A1000 processor, aka Loongson3a,
303 which implements the MIPS64r2 ISA, the Loongson-mmi ASE, Loongson-cam ASE
304 and Loongson-ext ASE instructions. Add -march=gs464 option for Loongson
305 3A1000 processor, The -march=loongson3a is an alias of -march=gs464 for
306 compatibility.
307
46cbf38d
AB
308* The size tool now has a new output format '--format=GNU' or '-G'. The
309 results are displayed in a similar manor to the default berkeley layout,
310 except read-only data is counted in the data column, not the text column.
311 Additionally the total is only included once.
312
719d8288
NC
313Changes in 2.31:
314
fe944acf
FT
315* Add support for disassembling netronome Flow Processor (NFP) firmware files.
316
7d02540a
TC
317* The AArch64 port now supports showing disassembly notes which are emitted
318 when inconsistencies are found with the instruction that may result in the
319 instruction being invalid. These can be turned on with the option -M notes
320 to objdump.
321
322* The AArch64 port now emits warnings when a combination of an instruction and
323 a named register could be invalid.
324
1869e86f
AB
325* Added O modifier to ar to display member offsets inside an archive
326
9176ac5b
NC
327Changes in 2.30:
328
dda8d76d
NC
329* Add --debug-dump=links option to readelf and --dwarf=links option to objdump
330 which displays the contents of any .gnu_debuglink or .gnu_debugaltlink
331 sections.
332
333 Add a --debug-dump=follow-links option to readelf and a --dwarf=follow-links
334 option to objdump which causes indirect links into separate debug info files
335 to be followed when dumping other DWARF sections.
336
55a09eb6
TG
337Changes in 2.29:
338
909b4e3d
MR
339* The MIPS port now supports microMIPS eXtended Physical Addressing (XPA)
340 instructions for assembly and disassembly.
341
f5b2fd52
MR
342* The MIPS port now supports the microMIPS Release 5 ISA for assembly and
343 disassembly.
344
38bf472a
MR
345* The MIPS port now supports the Imagination interAptiv MR2 processor,
346 which implements the MIPS32r3 ISA, the MIPS16e2 ASE as well as a couple
347 of implementation-specific regular MIPS and MIPS16e2 ASE instructions.
348
64517994
JM
349* The SPARC port now supports the SPARC M8 processor, which implements the
350 Oracle SPARC Architecture 2017.
351
25499ac7
MR
352* The MIPS port now supports the MIPS16e2 ASE for assembly and disassembly.
353
a91e1603
L
354* Add support for ELF SHF_GNU_MBIND and PT_GNU_MBIND_XXX.
355
efdf7a02 356* Add support for the wasm32 ELF conversion of the WebAssembly file format.
f96bd6c2 357
4a14e306
AK
358* Add --inlines option to objdump, which extends the --line-numbers option
359 so that inlined functions will display their nesting information.
360
9ef920e9
NC
361* Add --merge-notes options to objcopy to reduce the size of notes in
362 a binary file by merging and deleting redundant notes.
363
2425a30e
NC
364* Add support for locating separate debug info files using the build-id
365 method, where the separate file has a name based upon the build-id of
366 the original file.
367
9703a4ef
TG
368Changes in 2.28:
369
08dc996f
AM
370* This version of binutils fixes a problem with PowerPC VLE 16A and 16D
371 relocations which were functionally swapped, for example,
372 R_PPC_VLE_HA16A performed like R_PPC_VLE_HA16D while R_PPC_VLE_HA16D
373 performed like R_PPC_VLE_HA16A. This could have been fixed by
374 renumbering relocations, which would keep object files created by an
375 older version of gas compatible with a newer ld. However, that would
376 require an ABI update, affecting other assemblers and linkers that
377 create and process the relocations correctly. It is recommended that
378 all VLE object files be recompiled, but ld can modify the relocations
a05a5b64 379 if --vle-reloc-fixup is passed to ld. If the new ld command-line
08dc996f
AM
380 option is not used, ld will ld warn on finding relocations inconsistent
381 with the instructions being relocated.
382
a05a5b64 383* The nm program has a new command-line option (--with-version-strings)
df2c87b5
NC
384 which will display a symbol's version information, if any, after the
385 symbol's name.
386
37fd5ef3
CZ
387* The ARC port of objdump now accepts a -M option to specify the extra
388 instruction class(es) that should be disassembled.
389
e511c9b1
AB
390* The --remove-section option for objcopy and strip now accepts section
391 patterns starting with an exclamation point to indicate a non-matching
392 section. A non-matching section is removed from the set of sections
393 matched by an earlier --remove-section pattern.
394
395* The --only-section option for objcopy now accepts section patterns
396 starting with an exclamation point to indicate a non-matching section.
397 A non-matching section is removed from the set of sections matched by
398 an earlier --only-section pattern.
399
d3e5f6c8
AB
400* New --remove-relocations=SECTIONPATTERN option for objcopy and strip.
401 This option can be used to remove sections containing relocations.
402 The SECTIONPATTERN is the section to which the relocations apply, not
403 the relocation section itself.
404
96a84ea3
TG
405Changes in 2.27:
406
e6cc316a
L
407* Add a configure option, --enable-64-bit-archive, to force use of a
408 64-bit format when creating an archive symbol index.
409
b8871f35
L
410* Add --elf-stt-common= option to objcopy for ELF targets to control
411 whether to convert common symbols to the STT_COMMON type.
412
7feec526
TG
413Changes in 2.26:
414
2b35fb28
RH
415* Add option to objcopy to insert new symbols into a file:
416 --add-symbol <name>=[<section>:]<value>[,<flags>]
417
886a2506
NC
418* Add support for the ARC EM/HS, and ARC600/700 architectures.
419
ea556d25
L
420* Extend objcopy --compress-debug-sections option to support
421 --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi] for ELF
422 targets.
423
acf1419f
AB
424* Add --update-section option to objcopy.
425
55edd97b
EA
426* Add --output-separator option to strings.
427
c50415e2
TG
428Changes in 2.25:
429
7fac9594
NC
430* Add --data option to strings to only print strings in loadable, initialized
431 data sections. Change the default behaviour to be --all, but add a new
432 configure time option of --disable-default-strings-all to restore the old
433 default behaviour.
434
334ac421
EA
435* Add --include-all-whitespace to strings.
436
bbad633b
NC
437* Add --dump-section option to objcopy.
438
35c08157
KLC
439* Add support for the Andes NDS32.
440
58ca03a2
TG
441Changes in 2.24:
442
a05a5b64 443* Objcopy now supports wildcard characters in command-line options that take
2e62b721
NC
444 section names.
445
36591ba1
SL
446* Add support for Altera Nios II.
447
af18cb59
TG
448Changes in 2.23:
449
b9c361e0
JL
450* Add support for the VLE extension to the PowerPC architecture.
451
9a30f236
KT
452* Add support for x64 Windows target of the delayed-load-library.
453
99c513f6
DD
454* Add support for the Renesas RL78 architecture.
455
a7142d94
TG
456Changes in 2.22:
457
4ccf1e31
JJ
458* Add support for displaying the contents of .debug.macro sections.
459
ec25acb3
NC
460* Add --preprocessor-arg option to windres to specify additional options
461 passed to preprocessor.
44f45767 462
fd2f0033
TT
463* Add --dwarf-start and --dwarf-end to readelf and objdump. These are used by
464 the new Emacs mode, see dwarf-mode.el.
465
69f56ae1
WL
466* Add support for the Tilera TILEPro and TILE-Gx architectures.
467
468changes in 2.21:
44f45767 469
b7dd81f7
NC
470* Add --interleave-width option to objcopy to allowing copying a range of
471 bytes from the input to the output with the --interleave option.
472
40b36596
JM
473* Add support for the TMS320C6000 (TI C6X) processor family.
474
0b6ae522
DJ
475* Readelf can now display ARM unwind tables (.ARM.exidx / .ARM.extab) using
476 the -u / --unwind option.
477
2c610e4b
L
478* Add --dyn-syms to readelf to dump dynamic symbol table.
479
d2420a8c
NC
480* A new tool - elfedit - has been added to directly manipulate ELF format
481 binaries.
81c23f82 482
bf201fdd
KT
483* Add to dlltool .def file feature of aliasing PE internal symbol name by
484 '== <ID>' option.
485
a05a5b64 486* Add a new command-line option -a / --addresses to addr2line to display the
be6f6493
TG
487 address before function name or source filename.
488
a05a5b64 489* Add a new command-line option -p / --pretty-print to addr2line to have
68cdf72f
TG
490 a more human readable output.
491
75875724
TG
492* The hppa/som targets can now be compiled on any host.
493
81c23f82
TG
494Changes in 2.20:
495
10e636d2
DK
496* Add support for delay importing to dlltool. Use the --output-delaylib <file>
497 switch to create a delay-import library. The resulting app will load the dll
498 as soon as the first function is called. It will link to __delayLoadHelper2()
499 from the static delayimp library, which will import LoadLibraryA and
500 GetProcAddress from kernel32.
501
a05a5b64 502* Add a new command-line option, --insn-width=WIDTH, to objdump to specify
10e636d2
DK
503 number of bytes to be displayed on a single line when disassembling
504 instructions.
3dcb3fcb 505
cf13d699 506* Readelf can now display the relocated contents of a section as a sequence
a05a5b64 507 of bytes via the --relocated-dump=<name|number> command-line option.
cf13d699 508
a05a5b64 509* The gprof program has been given a new command-line option:
0e27a8f6
NC
510 --external-symbols-table=<filename> which reads in symbols from a specified
511 file.
6e33da12 512
ce3c775b
NC
513* The plugin target has been added to bfd. It can load the same shared objects
514 used by gold and uses them to provide basic support for new file formats.
515
43cd3ced
AG
516* The verilog memory hex dump file format is now supported as an output format
517 for objcopy.
c067354b 518
92dd4511 519* Add --file-alignment, --heap, --image-base, --section-alignment,
a05a5b64 520 --stack and --subsystem command-line options to objcopy, which will
92dd4511
L
521 set PE optional header.
522
4cb93e3b
TG
523* Option --dwarf/-W of objdump is now as flexible as readelf --debug-dump/-w.
524
525* --as-needed now links in a dynamic library if it satisfies undefined
526 symbols in regular objects, or in other dynamic libraries. In the
527 latter case the library is not linked if it is found in a DT_NEEDED
528 entry of one of the libraries already linked.
529
0dafdf3f 530* Added --prefix=PREFIX and --prefix-strip=LEVEL switches to objdump to
28024d9d 531 add absolute paths for -S.
0dafdf3f 532
e77b97d4
KT
533* Add new option --use-nul-prefixed-import-tables to dlltool to allow fall-
534 back to old import table generation with null element prefix.
535
3aade688 536* Added --identify-strict switch to cause --identify <implib> to
71c57c16
NC
537 report an error when the import library is associated with
538 multiple DLLs.
539
540* Added --identify <implib> option to dlltool, which determines the
541 name of the DLL associated with the specified <implib>.
542
2f3bb96a
BE
543* Support for PowerPC booke64 instructions has been removed. The assembler no
544 longer accepts -mbooke32 or -mbooke64 and the disassembler no longer accepts
545 -Mbooke32 or -Mbooke64. Instead, -mbooke and -Mbooke should be used.
546
6e33da12
TG
547Changes in 2.19:
548
a262ae96
NC
549* Added -wL switch to dump decoded contents of .debug_line.
550
a8da6403
NC
551* Added support for "thin" archives which contain pathnames pointing to
552 object files rather than the files themselves and which contain a
553 flattened symbol index for all objects, and archives, which have been
554 added to the archive.
3aade688 555
98ec6e72
NC
556* Added -F switch to objdump to include file offsets in the disassembly.
557
4145f1d5
NC
558* Added -c switch to readelf to allow string dumps of archive symbol index.
559
85f10a01
MM
560* Support for SSE5 has been added to the i386 port.
561
09c11c86
NC
562* Added -p switch to readelf to allow string dumps of sections.
563
876c34bf 564Changes in 2.18:
98ec6e72 565
ad71ef64
NC
566* Resolved 37 coding problems in bfd including static array overruns, null
567 pointer dereferences and use of a malloc buffer after it has been freed, as
568 revealed by static analysis donated by Coverity, Inc. (http://scan.coverity.com).
1e4cf259 569
32866df7
NC
570* The binutils sources are now released under version 3 of the GNU General
571 Public License.
572
692ed3e7
NC
573* A new tool "windmc" has been added for some targets. This is a message
574 compiler which attempts to be compatible with the MS version.
575
576* Add codepage support to the windres tool. It now supports many new
577 resource types (e.g. MANIFEST, TOOLBAR, etc). The output generation
578 for binary files is done now via bfd itself. The endianess problems
579 for different hosts are solved. Dumps of .res files can now be
580 re-compiled by windres without lossing resources or compilation errors.
581 Some problems on dialog resource translations are corrected.
d856f2dd 582
a05a5b64 583* Add --extract-symbol command-line option to objcopy, which will
d3e52d40
RS
584 strip everything out of an ordinary object file or executable except
585 for its symbol table. Files containing just symbols can be useful
586 to some OSes.
587
32866df7
NC
588Changes in 2.17:
589
aef1f6d0
DJ
590* Add "-x NAME" to readelf in addition to "-x NUMBER".
591
cbf1f5df
NC
592* Add -i and -t switches to cxxfilt. -i disables the display of implementation
593 specific extra demangling information (if any) and -t disables the demangling
594 of types.
595
596* Add support for the "@<file>" syntax to the command lines of all tools, so
597 that extra switches can be read from <file>.
598
4de2ad99 599* Add "-W/--dwarf" to objdump to display the contents of the DWARF
cbf1f5df 600 debug sections.
4de2ad99 601
5477e8a0 602* Add "-t/--section-details" to readelf to display section details.
cbf1f5df 603 "-N/--full-section-name" is deprecated.
5477e8a0 604
b12fe839
AM
605* powerpc-linux ld now supports a variant form of PLT and GOT for the security
606 conscious. This form will automatically be chosen when ld detects that all
607 code in regular object files was generated by gcc -msecure-plt. The old PLT
608 and GOT may be forced by a new ld option, --bss-plt.
609
0c552dc1
FF
610* Add "-i/--inlines" to addr2line to print enclosing scope information
611 for inlined function chains, back to first non-inlined function.
612
81fc812e
L
613* Add "-N/--full-section-name" to readelf to display full section name.
614
ec72cfe5
NC
615* Add "-M entry:<addr>" switch to objdump to specify a function entry address
616 when disassembling VAX binaries.
617
7b4a0685
NC
618* Add "--globalize-symbol <name>" and "--globalize-symbols <filename>" switches
619 to objcopy to convert local symbols into global symbols.
3aade688 620
9fbad737 621* gprof now allows input files to have histogram records for
3aade688 622 several memory ranges, provided those ranges are disjoint.
7b4a0685
NC
623
624Changes in 2.16:
625
b12fe839 626* Add "-g/--section-groups" to readelf to display section groups.
81fc812e 627
bcf32829
JB
628* objcopy recognizes two new options --strip-unneeded-symbol and
629 --strip-unneeded-symbols, namely for use together with the wildcard
630 matching the original --strip-symbol/--strip-symbols provided, but
631 retaining any symbols matching but needed by relocations.
632
18bd398b
NC
633* readelf can now display address ranges from .debug_range sections. This
634 happens automatically when a DW_AT_range attribute is encountered. The
a05a5b64 635 command-line switch --debug-dump=Ranges (or -wR) can also be used to display
18bd398b
NC
636 the contents of the .debug_range section.
637
3c9458e9
NC
638* nm and objdump now have a switch "--special-syms" to enable the displaying of
639 symbols which the target considers to be special. By default these symbols
640 are no longer displayed. Currently the only special symbols are the Mapping
641 symbols used by the ARM port to mark transitions between text and data and
642 between ARM and THUMB code.
643
607dea97
NC
644* dlltool has a switch "--ext-prefix-alias <prefix>" to generate additional
645 import and export symbols with <preifx> prepended to them.
646
647Changes in 2.15:
648
e39893d7 649* objcopy for MIPS targets now accepts "-M no-aliases" as an option to the
9d317d34 650 disassembler to print the "raw" mips instruction mnemonic instead of some
e39893d7
FF
651 pseudo instruction name. I.E. print "daddu" or "or" instead of "move",
652 "sll" instead of "nop", etc.
653
5fe11841
NC
654* objcopy and strip can now take wildcard patterns in symbol names specified on
655 the command line provided that the --wildcard switch is used to enable them.
656
fb52b2f4
NC
657* readelf can now parse archives.
658
51cdc6e0
NC
659* objdump now accepts --debugging-tags to print the debug information in a
660 format compatible with ctags tool.
661
ed1653a7
NC
662* objcopy and strip now accept --only-keep-debug to create a file containing
663 those sections that would be stripped out by --strip-debug. The idea is that
664 this can be used in conjunction with the --add-gnu-debuglink switch to create
665 a two part program distribution - one a stripped executable and the other the
666 debugging info.
667
2593f09a
NC
668* objcopy now accepts --add-gnu-debuglink=<file> to insert a .gnu_debuglink
669 section into a (presumably stripped) executable. This allows the debug
50c2245b 670 information for the file to be held in a separate file.
3aade688 671
a3b6428f
NC
672* BFD marks the sections .comment and .note as 'n' in the BSD/POSIX
673 single-character representation. This can be checked by running nm
674 with the -a switch.
675
43c58ae6
CD
676Changes in 2.14:
677
7c29036b
NC
678* Added --info switch to objcopy and strip.
679
3b36097d
SC
680* Support for Vitesse IQ2000 added by Red Hat.
681
8745eafa
NC
682* Added 'S' encoding to strings to allow the display of 8-bit characters.
683
d7fb0dd2
NC
684* Added --prefix-symbols=<text>, --prefix-sections=<text> and
685 --prefix-alloc-sections=<text> to objcopy.
686
84ad6ede
NC
687* readelf can handle the extensions to the DWARF2 spec used by the Unified
688 Parallel C compiler.
689
7d036af2
AM
690* BFD no longer declares a "boolean" type, to avoid clashes with other
691 headers that declare the same. Users of BFD should replace boolean,
692 false and true, with int, 0 and 1, or define their own boolean type.
693
1e4cf259
NC
694* Support for IP2K added by Denis Chertykov.
695
2cbb2eef
NC
696Changes in 2.13:
697
698* Support for the Fujitsu FRV architecture added by Red Hat. Models for FR400
699 and FR500 included.
252b5132 700
9a66911f
NC
701Changes in version 2.12:
702
49fda6c8
HPN
703* Support for Don Knuth's MMIX, by Hans-Peter Nilsson.
704
15c82623
NC
705* size: Add --totals to display summary of sizes (Berkeley format only).
706
d974e256
JJ
707* readelf: Add --wide option to not break section header or segment listing
708 lines to fit into 80 columns.
709
d132876a
NC
710* strings: Add --encoding to display wide character strings. By Markus Kuhn.
711
594ef5db
NC
712* objcopy: Add --rename-section to change section names.
713
e0c60db2
NC
714* readelf: Support added for DWARF 2.1 extensions. Support added for
715 displaying the contents of .debug.macinfo sections.
716
a05a5b64 717* New command-line switches added to objcopy to allow symbols to be kept as
16b2b71c
NC
718 global symbols, and also to specify files containing lists of such symbols.
719 by Honda Hiroki.
720
87e6d782
NC
721* Support for OpenRISC by Johan Rydberg.
722
a05a5b64 723* New command-line switch to objcopy --alt-machine-code which creates a binary
1ae8b3d2
AO
724 with an alternate machine code if one is defined in the architecture
725 description. Only supported for ELF targets. By Alexandre Oliva.
726
a05a5b64 727* New command-line switch to objcopy -B (or --binary-architecture) which sets
09ad7db3 728 the architecture of the output file to the given argument. This option only
43a0748c
NC
729 makes sense, if the input target is binary. Otherwise it is ignored.
730 By Stefan Geuken.
731
e135f41b
NC
732* Support for PDP-11 by Lars Brinkhoff.
733
09ad7db3
AM
734Changes in binutils 2.11:
735
077b8428
NC
736* Add support for ARM v5t and v5te architectures and Intel's XScale ARM
737 extenstions.
738
a05a5b64 739* Add --srec-len and --srec-forceS3 command-line switch to objcopy.
077b8428 740 By Luciano Gemme.
7d036af2 741
156c2f8b
NC
742* Support for the MIPS32, by Anders Norlander.
743
22b36938
JE
744* Support for the i860, by Jason Eckhardt.
745
5bcac8a4
HPN
746* Support for CRIS (Axis Communications ETRAX series).
747
252b5132
RH
748Changes in binutils 2.10:
749
09ad7db3
AM
750* Support for 64-bit ELF on HPPA.
751
a05a5b64 752* New command-line switch to objdump --file-start-context which shows the
f1563258 753 entire file contents up to the source line first encountered for a given
7d036af2 754 file.
f1563258 755
a05a5b64 756* New command-line switch to objdump -M (or --disassembler-options) which takes
dd92f639
NC
757 a parameter which can then be interpreted on a per-target basis by the
758 disassembler. Used by ARM targets to select register name sets, ISA, APCS or
759 raw verions.
7d036af2 760
c2c40d93
ILT
761* objdump support for -mi386:intel which causes disassembly to be displayed
762 with intel syntax.
252b5132
RH
763
764* New program: readelf. This displays the contents of ELF format files,
765 regardless of target machine.
766
767* objcopy now takes --change-section-lma, --change-section-vma, and
768 --change-section-address options. The old --adjust-section-vma option is
769 equivalent to --change-section-address. The other --adjust-* options are now
770 renamed to --change-*, although --adjust-* continues to work.
771
57938635
AM
772* objcopy has a --redefine-sym option that lets you rename symbols.
773
774* objcopy now takes a -j/--only-section option to copy only the specified
775 sections.
776
252b5132
RH
777* dlltool now supports the IMPORTS command.
778
779* dlltool now takes --export-all-symbols, --no-export-all-symbols,
780 --exclude-symbols, and --no-default-excludes options.
781
782Changes in binutils 2.9:
783
784* Added windres program, which can be used to manipulate resources in WIN32
785 files as used on Windows 95 and Windows NT.
786
787* The objcopy --gap-fill and --pad-to options operate on the LMA rather than
788 the VMA of the sections.
789
790* Added S modifier to ar to not build a symbol table.
791
792Changes in binutils 2.8:
793
794* The objdump disassembly format has been changed, and hopefully improved. Use
795 the new --prefix-addresses option to get the old format. There are also new
796 --disassemble-zeroes and --no-show-raw-insn options which affect disassembler
797 output.
798
799* Formats may now be specified as configuration triplets. For example,
800 objdump -b i386-pc-linux. The triplets are not passed through config.sub,
801 so they must be in canonical form.
802
803* Added new addr2line program. This uses the debugging information to convert
804 an address into a file name and line number within a program.
805
806* Added --change-leading-char argument to objcopy.
807
808* Added --weaken argument to objcopy.
809
810* objdump --dynamic-reloc now works on ELF executables and shared libraries.
811
812* Added --adjust-vma option to objdump.
813
814* Added -C/--demangle option to objdump.
815
816* Added -p/--preserve-dates option to strip and objcopy.
817
818Changes in binutils 2.7:
819
820* Added --enable-shared and --enable-commonbfdlib options to configure.
821
822* Added --debugging argument to objdump and objcopy.
823
824* Added --defined-only argument to nm.
825
826* Added --remove-leading-char argument to objcopy.
827
828* The objdump --line-numbers option is now meaningful with --reloc.
829
830* Added --line-numbers option to nm.
831
832* Added --endian/-EB/-EL option to objdump.
833
834* Added support for Alpha OpenVMS/AXP.
835
836Changes in binutils 2.6:
837
838* Added -N/--strip-symbol and -K/--keep-symbol arguments to strip and objcopy.
839
840* Added several arguments to objcopy to provide some control over how the new
841 file is laid out in memory. Also added binary output format to BFD to permit
842 generating plain binary files.
843
844* Added --start-address and --stop-address options to objdump.
845
846* ar and ranlib now work on AIX. The tools are now built by default on AIX.
847
848Changes in binutils 2.5:
849
850* Changed objdump -dr to dump the relocs interspersed with the assembly
1049f94e 851 listing, for a more useful listing of relocatable files.
252b5132
RH
852
853* Changed objdump -d/--disassemble to only disassemble SEC_CODE sections.
854 Added -D/--disassemble-all option to disassemble all sections.
855
856* Added --size-sort option to nm.
857
858* strip and objcopy should now be able to handle dynamically linked ELF
859 executables.
860
861Changes in binutils 2.4:
862
863* Support for HP-PA (by Jeff Law), i386 Mach (by David Mackenzie), RS/6000 and
864 PowerPC (except ar and ranlib; by Ian Taylor).
865
866* Support for Irix 5.
867
868* Programs `strip' and `objcopy' will not attempt to write dynamically linked
869 ELF output files, since BFD currently can't create them properly.
870
871Changes in binutils 2.3:
872
873* A new --stabs argument has been added to objdump to dump stabs sections in
874 ELF and COFF files.
875
876* A new program, nlmconv, has been added. It can convert object files into
877 Novell NetWare Loadable Modules.
878
879* The strings program has been added.
880
881Changes in binutils 2.2:
882
883* The 'copy' program has been renamed to 'objcopy', for consistency with
884 'objdump', and because 'copy' might more plausibly be used as a synonym for
885 'cp'.
886
887* The new stand-alone program c++filt is a filter that converts encoded
888 (mangled) C++ assembly-level identifiers to user-level names. (Note: This
889 may get moved to the gcc distribution.)
890
891* nm -o on an archive now prefixes each line with the archive name, matching
892 the output from BSD nm.
893
894* ar (and ld) can now read (but not write) BSD4.4-style archives.
895
896* New support for H8500, Z8000, and the Hitach SH.
897
898* Dis-assembler interface changed to allow sharing with gdb.
899
900* There is new Elf code, but it is not yet ready for general use.
901
902* There is the beginnings of a test suite.
903
904Changes in binutils 2.1:
905
906* There is now support for writing ECOFF files, so ld and the other utilities
907 should work on Risc/Ultrix and Irix. Please let us know how well this works.
908
909* ar now automatically creates a symbol table (a __.SYMDEF member, in the BSD
910 version), if there are any object files in the archive. So running ranlib is
911 now redundant (unless the non-standard q command is used). This is required
912 for Posix.2 conformance.
913
914* The archive-reading code now reads both BSD-style and SYSV-style archives
915 independently of the selected target format. This is to encourage people to
916 switch to SYSV-format, which has a number of advantages.
917
918* The strip and copy programs now have options to remove debug-symbols only
919 and/or local symbols only. They now also support long options.
920
921\f
d87bef3a 922Copyright (C) 2012-2023 Free Software Foundation, Inc.
5bf135a7
NC
923
924Copying and distribution of this file, with or without modification,
925are permitted in any medium without royalty provided the copyright
926notice and this notice are preserved.
927
252b5132
RH
928Local variables:
929fill-column: 79
930End: