From 4fec86cf7464a3a67117a89fcf19badee76797a3 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 9 Aug 2007 16:45:32 +0000 Subject: [PATCH] * solib-som.c (som_relocate_section_addresses): Stop saving the $CODE$ section in the so_list structure. --- gdb/ChangeLog | 5 +++++ gdb/solib-som.c | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7ae91016d2..f83e0403da 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-08-09 Joel Brobecker + + * solib-som.c (som_relocate_section_addresses): Stop saving + the $CODE$ section in the so_list structure. + 2007-08-08 Maxim Grigoriev * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New. diff --git a/gdb/solib-som.c b/gdb/solib-som.c index dcc5f63cbb..b53232f9f6 100644 --- a/gdb/solib-som.c +++ b/gdb/solib-som.c @@ -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;