]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* solib-som.c (som_relocate_section_addresses): Stop saving
authorJoel Brobecker <brobecker@gnat.com>
Thu, 9 Aug 2007 16:45:32 +0000 (16:45 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 9 Aug 2007 16:45:32 +0000 (16:45 +0000)
        the $CODE$ section in the so_list structure.

gdb/ChangeLog
gdb/solib-som.c

index 7ae91016d24b4ec93dbd75cf00087798d7d25ea0..f83e0403daecce4f5304925b9600bcfd783855e0 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-09  Joel Brobecker  <brobecker@adacore.com>
+
+        * solib-som.c (som_relocate_section_addresses): Stop saving
+        the $CODE$ section in the so_list structure.
+
 2007-08-08  Maxim Grigoriev  <maxim2405@gmail.com>
 
        * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
index dcc5f63cbb4ec1ee1f11b655ef4866184c14be1a..b53232f9f6a00bd676d843407c756c421de05603 100644 (file)
@@ -113,13 +113,6 @@ som_relocate_section_addresses (struct so_list *so,
 {
   flagword aflag = bfd_get_section_flags(so->abfd, sec->the_bfd_section);
 
-  /* solib.c does something similar, but it only recognizes ".text", SOM calls
-     the text section "$CODE$".  */
-  if (strcmp (sec->the_bfd_section->name, "$CODE$") == 0)
-    {
-      so->textsection = sec;
-    }
-
   if (aflag & SEC_CODE)
     {
       sec->addr    += so->lm_info->text_addr - so->lm_info->text_link_addr;