diff options
author | Alan Modra <amodra@gmail.com> | 2019-10-21 12:54:06 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-10-21 16:13:39 +1030 |
commit | 95cc7c169c4bbb6f10e630184f527b20b83fc5c3 (patch) | |
tree | 926d50d0829027a0804a62450fcbf6396c85da72 /bfd/bfd.c | |
parent | 54d83b8d3920eea4a0d545f1ff7ac2923d938e6c (diff) | |
download | gdb-95cc7c169c4bbb6f10e630184f527b20b83fc5c3.zip gdb-95cc7c169c4bbb6f10e630184f527b20b83fc5c3.tar.gz gdb-95cc7c169c4bbb6f10e630184f527b20b83fc5c3.tar.bz2 |
ar P support
This patch extends "ar P" to allow creation of normal (as distinct
from thin) archives with full path names.
PR 452
PR 25104
bfd/
* archive.c (normalize): Return file unchanged when
BFD_ARCHIVE_FULL_PATH.
(_bfd_construct_extended_name_table): Pass abfd, the output
bfd, to normalize.
(_bfd_archive_bsd44_construct_extended_name_table): Likewise.
* bfd.c (struct bfd): Make flags a full flagword.
(BFD_ARCHIVE_FULL_PATH): Define.
* bfd-in2.h: Regenerate.
binutils/
* ar.c (write_archive): Set BFD_ARCHIVE_FULL_PATH.
* doc/binutils.texi (extract from archive): Mention
restrictions when extracting from archives with full paths.
(ar P): Update to current P support.
(ar -X32_64): Fix spelling.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r-- | bfd/bfd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -92,7 +92,7 @@ CODE_FRAGMENT . ENUM_BITFIELD (bfd_direction) direction : 2; . . {* Format_specific flags. *} -. flagword flags : 20; +. flagword flags; . . {* Values that may appear in the flags field of a BFD. These also . appear in the object_flags field of the bfd_target structure, where @@ -179,6 +179,9 @@ CODE_FRAGMENT . {* Use the ELF STT_COMMON type in this BFD. *} .#define BFD_USE_ELF_STT_COMMON 0x80000 . +. {* Put pathnames into archives (non-POSIX). *} +.#define BFD_ARCHIVE_FULL_PATH 0x100000 +. . {* Flags bits to be saved in bfd_preserve_save. *} .#define BFD_FLAGS_SAVED \ . (BFD_IN_MEMORY | BFD_COMPRESS | BFD_DECOMPRESS | BFD_LINKER_CREATED \ |