]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
dlltool leading_underscore
authorAlan Modra <amodra@gmail.com>
Wed, 2 Oct 2024 05:04:35 +0000 (14:34 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 3 Oct 2024 03:01:45 +0000 (12:31 +0930)
commit45a7f5a29de78755dd0d5e8f7beaf2bd07736d20
tree54cda1ac444bc5ca3778f02697929feec48ba91e
parentd2ea1a941173223907ef8a91d674af3417ba9dbc
dlltool leading_underscore

This patch tidies dlltool code dealing with adding a leading
underscore to generated symbol names.  There should be no functional
change here, but there could be if we ever have a bfd target with
symbol_leading_char something other than '_' or 0.

* dlltool.c (leading_underscore): Change from an int to a
        char*.  Update all uses.  If neither --leading-underscore or
        --no=leading-underscore is given, set leading_underscore to a
        string with first char returned by bfd_get_target_info as the
        target's symbol underscoring.
binutils/dlltool.c