On Fri, 9 Oct 2026 10:50:52 GMT, Dingli Zhang <[email protected]> wrote:

> Hi, please consider.
> 
> Building hsdis with binutils 2.47 fails because bfd.h no longer defines the 
> legacy `FALSE` macro. `init_disassemble_info_from_bfd()` in 
> `src/utils/hsdis/binutils/hsdis-binutils.c` still uses `FALSE` when setting 
> disassembler_needs_relocs, causing error: 'FALSE' undeclared.
> 
> Replace `FALSE` with the standard C boolean false. The file already includes 
> `<stdbool.h>` and uses false elsewhere, so this also preserves compatibility 
> with older binutils versions.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 440be4ff
Author:    Dingli Zhang <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/440be4ff6ce97d9a125c2c7c49ace140a8ddc0b7
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8394146: Hsdis does not build with binutils 2.47

Reviewed-by: jiefu, ayang

-------------

PR: https://git.openjdk.org/jdk/pull/33282

Reply via email to