The NetBSD Project

CVS log for pkgsrc/devel/binutils/options.mk

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / devel / binutils

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Oct 12 09:10:08 2026 UTC (5 weeks ago) by jperkin
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +13 -3 lines
binutils: Update to 2.47.

Lots of pkgsrc changes to simplify and clean up the package.  Tested on SmartOS
(has been used to build the trunk packages for a number of weeks now), Darwin,
and NetBSD.

Changes since 2.41 below are for binutils only, not including gas and ld.

Changes in 2.47:

* The s390 32-bit target (s390-*) is deprecated and planned for removal in a
  future release, along with the elf32-s390 target format.  configure emits
  an error for this target, which can be overridden using --enable-obsolete.
  Linux Kernel 6.19 removed s390 32-bit compatibility support.  Glibc 2.43
  and GCC 16.1 have deprecated s390 32-bit, both with the intent to remove it
  in a future release.
  The s390 64-bit target (s390x-*) remains supported.

* The AArch64 disassembler now accepts a command line option of "-M annotate"
  which displays the symbol associated with undefined instructions, should
  there be one.

* The x86 and x86_64 disassemblers now accept a command line option of
  "-M annotate-immediates" which displays the symbol associated with immediate
  values, should there be one.

* Objdump and readelf now have a --debug-dir=<DIR> option which can be used to
  tell them where to find separate debug info files.

* Add --map-global-vars option to objdump which displays the location and type
  of global variables in object files. This feature was developed by Guillaume
  Vacherias <guillaume.vacherias@foss.st.com>.

Changes in 2.46:

* SFrame stack trace format now represents an undefined return address as
  an SFrame FRE without any offsets.  libsframe provides a new API to test
  for RA undefined, which is used when dumping SFrame information (e.g. using
  objdump and readelf) to show such FREs as "RA undefined".

* Add --got-contents option to readelf to display the contents of
  Global Offset Table (GOT) sections.

* Internal changes to plugin support, and stricter target checking may result
  in some errors being exposed in user options passed to the various binutils.
  For example objcopy --target=TARGET now will only work if the input file is
  for TARGET whereas prior versions of objcopy accepted other target input
  files and produced a TARGET output.  If you do in fact want the old
  behaviour the correct usage is objcopy --output-target=TARGET.

* NaCl target support is removed.

* New versioned release of libsframe: libsframe.so.3.  This release introduces
  versioned symbols with version node name LIBSFRAME_3.0.

* objdump and readelf now support displaying SFrame Version 3 information.
  The existing --sframe option can be used to display sections in the the new
  V3 format.  Display of SFrame Version 2 information continues to be supported
  (NB: Emission and linking of SFrame Version 2 is discontinued).

Changes in 2.45:

* New versioned release of libsframe: libsframe.so.2.  This release introduces
  versioned symbols with version node name LIBSFRAME_2.0.  Some new symbols
  have been added to support the new flag SFRAME_F_FDE_FUNC_START_PCREL and
  retrieving flags from SFrame decoder and encoder objects:
    - Addition of sframe_decoder_get_flags,
      sframe_decoder_get_offsetof_fde_start_addr, sframe_encoder_get_flags,
      sframe_encoder_get_offsetof_fde_start_addr.
  This release also includes backward-incompatible ABI changes:
    - Removal of sframe_get_funcdesc_with_addr.
    - Change in the behavior of sframe_decoder_get_funcdesc_v2,
      sframe_encoder_add_funcdesc_v2 and sframe_encoder_write.

* On s390 64-bit (s390x), gas, ld, objdump, and readelf now support generating
  and processing SFrame V2 stack trace information (.sframe).  The assembler
  generates SFrame info from CFI directives with option "--gsframe".  The
  linker generates SFrame info for the linker-generated .plt section and merges
  all .sframe sections.  Both objdump and readelf dump SFrame info with option
  "--sframe[=<section-name>]".

* For SFrame stack trace format, the function start address in each SFrame
  FDE has a changed encoding:  The 32-bit signed integer now holds the offset
  of the start PC of the associated function from the sfde_func_start_address
  field itself (instead of the earlier where it was the offset from the start
  of the SFrame section itself).  All SFrame sections generated by gas and ld
  now default to this new encoding, setting the (new)
  SFRAME_F_FDE_FUNC_START_PCREL flag.

  Relocatable SFrame links are now fixed.

* Readelf now recognizes RISC-V GNU_PROPERTY_RISCV_FEATURE_1_CFI_SS and
  GNU_PROPERTY_RISCV_FEATURE_1_CFI_LP_UNLABELED for zicfiss and zicfilp
  extensions.

* For RISC-V dis-assembler, the definition of mapping symbol $x is changed,
  so the file needs to be rebuilt since 2.45 once used .option arch directives.

* The LoongArch disassembler now properly accepts multiple disassembly
  options given by -M, such as "-M no-aliases,numeric".  (Previously only the
  first option took effect.)

Changes in 2.44:

* Support for Nios II targets has been removed except in the readelf utility,
  as this architecture has been EOL'ed by Intel.

* RISC-V disassembly now supports -M,max option like QEMU to dump instruction
  without checking architecture support as usual.

* gprofng:
  Support for hardware event counters for Neoverse-N1, Ampere-1, and
  Appliedmicro processors.

Changes in 2.43:

* The MIPS port now supports microMIPS MT Application Specific Extension
  instructions for assembly and disassembly.

* Readelf now displays RELR relocations in full detail.

* Readelf now has a -j/--display-section option which takes the name or index
  of a section and displays its contents according to its type.  The option can
  be used multiple times on the command line to display multiple sections.

* Base register 0 is now printed as "0" instead of "%r0" in s390 disassembly.

* When objdump or readelf are used to display the contents of a .eh_frame
  section they will now also display the contents of the .eh_frame_hdr section,
  if present.

* Support for the Maverick co-processor (via -mfpu=maverick) on Arm has been
  removed.  The CPU name ep9312 is still recognized, but treated as an alias
  for arm920t.

* Support for the FPA co-procossor on Arm has been removed.  In cases where a
  legacy CPU previously defaulted to using this instruction set extension, the
  assembler now defaults to no-FPU to avoid quietly misassembling legacy code.

* gprofng:
  Improved the support for hardware event counters:
    - Re-designed and streamlined the implementation.
    - Defined a common set of events for ARM processors.
    - Added specific events for AMD ZEN3 / ZEN4, and Intel Ice Lake processors.
  Added a minimal support for RISC-V.

Changes in 2.42:

* The objdump program has a new command line option -Z/--decompress which
  changes the behaviour of the -s/--full-contents option, forcing it to
  decompress the contents of any compressed section before they are displayed.

  In addition when objdump is displaying sections headers (via the -h/--headers
  command line option) it will now display "COMPRESSED" in the Flags field of
  any compressed section.

* The readelf program has a new command line option --extra-sym-info which
  extends the information displayed by the --symbols option.  When enabled
  the display will include the name of the section referenced by a symbol's
  index field (st_shndx).  In the future more information may also be displayed
  when this option is enabled.

* objcopy --set-section-flags now supports "large" to set SHF_X86_64_LARGE
  for ELF x86-64 objects.

* objdump --visualize-jumps is now supported on s390 architecture.

* The s390 disassembly now optionally includes the instruction description as
  comment with the s390-specific disassembler option "insndesc":
  - For objdump it can be enabled with "objdump -M insndesc ...".
  - In gdb it can be enabled with "set disassembler-options insndesc".

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Jan 29 13:10:34 2021 UTC (5 years, 9 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1
binutils: Improve gas/gld handling and cleanup.

Add a new "disable-ld" option that disables ld.  This is required on Darwin
where it is not currently built, but is also required for some SunOS setups
where an external GCC is used and we do not want a libgcc dependency on it.

There are now two ld-related PLIST variables, "gld" for the general handling
of whether GNU ld is built or not, and "ld" for the symlinks we create.

In addition Darwin also needs --disable-libctf to avoid a build issue, and an
additional PLIST variable to handle GNU as which is also not built on Darwin.

While here clean up a bunch of variable handling and NetBSD 5/6 workarounds,
and simplify the setup of SYMLINK_FILES.

Fixes build on Darwin, and SunOS when using an external GCC.  Ok fcambus@

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>