aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffgen.c
diff options
context:
space:
mode:
authorDave Korn <dave.korn@artimi.com>2009-04-14 09:47:44 +0000
committerDave Korn <dave.korn@artimi.com>2009-04-14 09:47:44 +0000
commit0408dee693ad16f400bc1b0ff04ccd13777e04d5 (patch)
treeca7551e512b6718b84698ea061197562349f9bd1 /bfd/coffgen.c
parentc38b10fa101227162ec08b2ecf1cd977c9380c4f (diff)
downloadgdb-0408dee693ad16f400bc1b0ff04ccd13777e04d5.zip
gdb-0408dee693ad16f400bc1b0ff04ccd13777e04d5.tar.gz
gdb-0408dee693ad16f400bc1b0ff04ccd13777e04d5.tar.bz2
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.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r--bfd/coffgen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 0faaede..8781557 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -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);