+2014-09-01 Jon TURNEY <jon.turney@dronecode.org.uk>
+
+ * objcopy.c (is_nondebug_keep_contents_section): Change
+ '.build-id' to '.buildid'.
+
2014-08-22 Richard Henderson <rth@redhat.com>
* dwarf.h (init_dwarf_regnames_aarch64): Declare.
if (ibfd->xvec->flavour == bfd_target_elf_flavour)
return (elf_section_type (isection) == SHT_NOTE);
- /* Always keep the .build-id section for PE/COFF.
+ /* Always keep the .buildid section for PE/COFF.
Strictly, this should be written "always keep the section storing the debug
directory", but that may be the .text section for objects produced by some
tools, which it is not sensible to keep. */
if (ibfd->xvec->flavour == bfd_target_coff_flavour)
- return (strcmp (bfd_get_section_name (ibfd, isection), ".build-id") == 0);
+ return (strcmp (bfd_get_section_name (ibfd, isection), ".buildid") == 0);
return FALSE;
}
+2014-09-01 Jon TURNEY <jon.turney@dronecode.org.uk>
+
+ * emultempl/pe.em (write_build_id, setup_build_id): Change pe/coff
+ build-id section name from '.build-id' to '.buildid'.
+ * emultempl/pep.em (write_build_id, setup_build_id): Ditto.
+
2014-08-22 Andreas Tobler <andreast@fgznet.ch>
* emulparams/armelf_fbsd.sh (TEXT_START_ADDR): Increase alignment to
bfd_size_type build_id_size;
unsigned char *build_id;
- /* Find the section the .build-id output section has been merged info. */
+ /* Find the section the .buildid output section has been merged info. */
for (asec = abfd->sections; asec != NULL; asec = asec->next)
{
struct bfd_link_order *l = NULL;
if (!link_order)
{
- einfo (_("%P: warning: .build-id section discarded,"
+ einfo (_("%P: warning: .buildid section discarded,"
" --build-id ignored.\n"));
return TRUE;
}
return TRUE;
}
-/* Make .build-id section, and set up coff_tdata->build_id. */
+/* Make .buildid section, and set up coff_tdata->build_id. */
static bfd_boolean
setup_build_id (bfd *ibfd)
{
flags = (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_IN_MEMORY
| SEC_LINKER_CREATED | SEC_READONLY | SEC_DATA);
- s = bfd_make_section_anyway_with_flags (ibfd, ".build-id", flags);
+ s = bfd_make_section_anyway_with_flags (ibfd, ".buildid", flags);
if (s != NULL)
{
struct pe_tdata *t = pe_data (link_info.output_bfd);
return TRUE;
}
- einfo ("%P: warning: Cannot create .build-id section,"
+ einfo ("%P: warning: Cannot create .buildid section,"
" --build-id ignored.\n");
return FALSE;
}
bfd_size_type build_id_size;
unsigned char *build_id;
- /* Find the section the .build-id output section has been merged info. */
+ /* Find the section the .buildid output section has been merged info. */
for (asec = abfd->sections; asec != NULL; asec = asec->next)
{
struct bfd_link_order *l = NULL;
if (!link_order)
{
- einfo (_("%P: warning: .build-id section discarded,"
+ einfo (_("%P: warning: .buildid section discarded,"
" --build-id ignored.\n"));
return TRUE;
}
return TRUE;
}
-/* Make .build-id section, and set up coff_tdata->build_id. */
+/* Make .buildid section, and set up coff_tdata->build_id. */
static bfd_boolean
setup_build_id (bfd *ibfd)
{
flags = (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_IN_MEMORY
| SEC_LINKER_CREATED | SEC_READONLY | SEC_DATA);
- s = bfd_make_section_anyway_with_flags (ibfd, ".build-id", flags);
+ s = bfd_make_section_anyway_with_flags (ibfd, ".buildid", flags);
if (s != NULL)
{
struct pe_tdata *t = pe_data (link_info.output_bfd);
return TRUE;
}
- einfo ("%P: warning: Cannot create .build-id section,"
+ einfo ("%P: warning: Cannot create .buildid section,"
" --build-id ignored.\n");
return FALSE;
}