Ada Binding to the GNU Binutils library (#1656)

* Ada Binding to the GNU Binutils library

The Ada-BFD library allows to:

* list and scan the ELF sections of an executable or object file,
* get the content of the ELF sections,
* get access to the symbol table,
* use the BFD disassembler

Requires some binutils-dev

* Fix build
This commit is contained in:
Stephane Carrez
2025-11-04 10:36:31 +01:00
committed by GitHub
parent 24078a2ee5
commit 0def4493ec
+62
View File
@@ -0,0 +1,62 @@
description = "Ada API for the GNU Binutils BFD library"
name = "bfdada"
version = "1.3.1"
authors = ["Stephane.Carrez@gmail.com"]
licenses = "GPL-2.0-or-later WITH GCC-exception-2.0"
maintainers = ["Stephane.Carrez@gmail.com"]
maintainers-logins = ["stcarrez"]
project-files = ["bfdada.gpr"]
tags = ["object", "binary", "elf", "symbols", "disassembler"]
website = "https://gitlab.com/stcarrez/ada-bfd"
long-description = """
[![Build Status](https://img.shields.io/endpoint?url=https://porion.vacs.fr/porion/api/v1/projects/ada-bfd/badges/build.json)](https://porion.vacs.fr/porion/projects/view/ada-bfd/summary)
[![Test Status](https://img.shields.io/endpoint?url=https://porion.vacs.fr/porion/api/v1/projects/ada-bfd/badges/tests.json)](https://porion.vacs.fr/porion/projects/view/ada-bfd/xunits)
[![Coverage](https://img.shields.io/endpoint?url=https://porion.vacs.fr/porion/api/v1/projects/ada-bfd/badges/coverage.json)](https://porion.vacs.fr/porion/projects/view/ada-bfd/summary)
The Ada-BFD is a library which provides Ada API for GNU Binutils BFD
library. It works on any version of GNU Binutils (starting at 2.15).
The recommended version for GNU Binutils is at least the 2.42.
The Ada-BFD library allows to:
* list and scan the ELF sections of an executable or object file,
* get the content of the ELF sections,
* get access to the symbol table,
* use the BFD disassembler
# Documentation
* [BFD Documentation](http://sourceware.org/binutils/docs/bfd/index.html)
* [Reading a program symbol table with Ada BFD](https://blog.vacs.fr/vacs/blogs/post.html?post=2012/11/03/Reading-a-program-symbol-table-with-Ada-Bfd)
"""
[gpr-externals]
BFDADA_BUILD = ["distrib", "debug", "optimize", "profile", "coverage"]
BFDADA_LIBRARY_TYPE = ["relocatable", "static", "static-pic"]
[available.'case(os)']
linux = true
windows = false
macos = false
'...' = false
[[depends-on]]
gnat = ">=13"
[[actions]]
type = "post-fetch"
command = ["sh", "configure"]
[[actions]]
type = "post-fetch"
command = ["make", "static"]
[configuration]
disabled = true
[origin]
commit = "e532f03dbf30904f7a733b460a7300fc0e9d644c"
url = "git+https://github.com/stcarrez/ada-bfd.git"