forked from Imagelibrary/binutils-gdb
bfd/ChangeLog
* coffgen.c (make_a_section_from_file): Set the backend long section names enable if long section names found on input. * coffcode.h: Extend long section names documentation to match. binutils/ChangeLog * objcopy.c (enum long_section_name_handling): New enum type. (enum command_line_switch): Add OPTION_LONG_SECTION_NAMES. (copy_options[]): Add entry for --long-section-names option. (copy_usage): Document it. (set_long_section_mode): New subroutine. (copy_file): Call it. (copy_main): Accept OPTION_LONG_SECTION_NAMES and parse arg. * doc/binutils.texi: Update objcopy documentation with details of new option.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2009-04-14 Dave Korn <dave.korn.cygwin@gmail.com>
|
||||
|
||||
* coffgen.c (make_a_section_from_file): Set the backend long
|
||||
section names enable if long section names found on input.
|
||||
* coffcode.h: Extend long section names documentation to match.
|
||||
|
||||
2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elflink.c (elf_link_add_object_symbols): Warn alternate ELF
|
||||
|
||||
@@ -153,6 +153,14 @@ SUBSUBSECTION
|
||||
points to a function that allows the value of the flag to be altered
|
||||
at runtime, on formats that support long section names at all; on
|
||||
other formats it points to a stub that returns an error indication.
|
||||
|
||||
With input BFDs, the flag is set according to whether any long section
|
||||
names are detected while reading the section headers. For a completely
|
||||
new BFD, the flag is set to the default for the target format. This
|
||||
information can be used by a client of the BFD library when deciding
|
||||
what output format to generate, and means that a BFD that is opened
|
||||
for read and subsequently converted to a writeable BFD and modified
|
||||
in-place will retain whatever format it had on input.
|
||||
|
||||
If @code{COFF_LONG_SECTION_NAMES} is simply defined (blank), or is
|
||||
defined to the value "1", then long section names are enabled by
|
||||
|
||||
@@ -73,6 +73,11 @@ make_a_section_from_file (bfd *abfd,
|
||||
char *p;
|
||||
const char *strings;
|
||||
|
||||
/* Flag that this BFD uses long names, even though the format might
|
||||
expect them to be off by default. This won't directly affect the
|
||||
format of any output BFD created from this one, but the information
|
||||
can be used to decide what to do. */
|
||||
bfd_coff_set_long_section_names (abfd, TRUE);
|
||||
memcpy (buf, hdr->s_name + 1, SCNNMLEN - 1);
|
||||
buf[SCNNMLEN - 1] = '\0';
|
||||
strindex = strtol (buf, &p, 10);
|
||||
|
||||
Reference in New Issue
Block a user