* i386linux.c (linux_link_create_dynamic_sections): Create section

named .linux-dynamic, not .dynamic.
	(linux_add_one_symbol): Use .linux-dynamic, not .dynamic.
	(bfd_linux_size_dynamic_sections): Likewise.
	(linux_finish_dynamic_link): Likewise.
This commit is contained in:
Ian Lance Taylor 1994-08-16 04:15:50 +00:00
parent c1a9aaa316
commit 969ceea035
2 changed files with 21 additions and 11 deletions

View File

@ -1,3 +1,11 @@
Tue Aug 16 00:12:31 1994 Eric Youngdale (ericy@cais.cais.com)
* i386linux.c (linux_link_create_dynamic_sections): Create section
named .linux-dynamic, not .dynamic.
(linux_add_one_symbol): Use .linux-dynamic, not .dynamic.
(bfd_linux_size_dynamic_sections): Likewise.
(linux_finish_dynamic_link): Likewise.
Mon Aug 15 12:16:56 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) Mon Aug 15 12:16:56 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* coffgen.c (STRING_SIZE_SIZE): Define. * coffgen.c (STRING_SIZE_SIZE): Define.

View File

@ -295,9 +295,9 @@ linux_link_create_dynamic_sections (abfd, info)
/* Note that we set the SEC_IN_MEMORY flag. */ /* Note that we set the SEC_IN_MEMORY flag. */
flags = SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_IN_MEMORY; flags = SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_IN_MEMORY;
/* We choose to use the name ".dynamic" for the fixup table. Why /* We choose to use the name ".linux-dynamic" for the fixup table.
not? */ Why not? */
s = bfd_make_section (abfd, ".dynamic"); s = bfd_make_section (abfd, ".linux-dynamic");
if (s == NULL if (s == NULL
|| ! bfd_set_section_flags (abfd, s, flags) || ! bfd_set_section_flags (abfd, s, flags)
|| ! bfd_set_section_alignment (abfd, s, 2)) || ! bfd_set_section_alignment (abfd, s, 2))
@ -387,7 +387,7 @@ linux_add_one_symbol (info, abfd, name, flags, section, value, string,
/* Here we do our special thing to add the pointer to the /* Here we do our special thing to add the pointer to the
dynamic section in the SHARABLE_CONFLICTS set vector. */ dynamic section in the SHARABLE_CONFLICTS set vector. */
s = bfd_get_section_by_name (linux_hash_table (info)->dynobj, s = bfd_get_section_by_name (linux_hash_table (info)->dynobj,
".dynamic"); ".linux-dynamic");
BFD_ASSERT (s != NULL); BFD_ASSERT (s != NULL);
if (! (_bfd_generic_link_add_one_symbol if (! (_bfd_generic_link_add_one_symbol
@ -494,11 +494,11 @@ linux_tally_symbols (h, data)
return true; return true;
} }
/* This is called to set the size of the .dynamic section is. It is /* This is called to set the size of the .linux-dynamic section is.
called by the Linux linker emulation before_allocation routine. We It is called by the Linux linker emulation before_allocation
have finished reading all of the input files, and now we just scan routine. We have finished reading all of the input files, and now
the hash tables to find out how many additional fixups are we just scan the hash tables to find out how many additional fixups
required. */ are required. */
boolean boolean
bfd_linux_size_dynamic_sections (output_bfd, info) bfd_linux_size_dynamic_sections (output_bfd, info)
@ -534,7 +534,8 @@ bfd_linux_size_dynamic_sections (output_bfd, info)
} }
/* Allocate memory for our fixup table. We will fill it in later. */ /* Allocate memory for our fixup table. We will fill it in later. */
s = bfd_get_section_by_name (linux_hash_table (info)->dynobj, ".dynamic"); s = bfd_get_section_by_name (linux_hash_table (info)->dynobj,
".linux-dynamic");
if (s != NULL) if (s != NULL)
{ {
s->_raw_size = 8 + linux_hash_table (info)->fixup_count * 8; s->_raw_size = 8 + linux_hash_table (info)->fixup_count * 8;
@ -570,7 +571,8 @@ linux_finish_dynamic_link (output_bfd, info)
if (linux_hash_table (info)->dynobj == NULL) if (linux_hash_table (info)->dynobj == NULL)
return true; return true;
s = bfd_get_section_by_name (linux_hash_table (info)->dynobj, ".dynamic"); s = bfd_get_section_by_name (linux_hash_table (info)->dynobj,
".linux-dynamic");
BFD_ASSERT (s != NULL); BFD_ASSERT (s != NULL);
os = s->output_section; os = s->output_section;
fixups_written = 0; fixups_written = 0;