mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
bfd/
* xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2009-04-01 Richard Sandiford <rdsandiford@googlemail.com>
|
||||||
|
|
||||||
|
* xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.
|
||||||
|
|
||||||
2009-04-01 Christophe Lyon <christophe.lyon@st.com>
|
2009-04-01 Christophe Lyon <christophe.lyon@st.com>
|
||||||
|
|
||||||
* elf32-arm.c (group_sections): Rewrite loops for better
|
* elf32-arm.c (group_sections): Rewrite loops for better
|
||||||
|
@ -4268,14 +4268,13 @@ xcoff_link_input_bfd (struct xcoff_final_link_info *finfo,
|
|||||||
bfd_coff_swap_lineno_in (input_bfd, linp, &lin);
|
bfd_coff_swap_lineno_in (input_bfd, linp, &lin);
|
||||||
lin.l_addr.l_symndx = *indexp;
|
lin.l_addr.l_symndx = *indexp;
|
||||||
bfd_coff_swap_lineno_out (output_bfd, &lin, linp);
|
bfd_coff_swap_lineno_out (output_bfd, &lin, linp);
|
||||||
linp += linesz;
|
|
||||||
|
|
||||||
/* Copy the other entries, adjusting their addresses. */
|
/* Copy the other entries, adjusting their addresses. */
|
||||||
linpend = linp + *lineno_counts * linesz;
|
linpend = linp + *lineno_counts * linesz;
|
||||||
offset = (o->output_section->vma
|
offset = (o->output_section->vma
|
||||||
+ o->output_offset
|
+ o->output_offset
|
||||||
- o->vma);
|
- o->vma);
|
||||||
for (; linp < linpend; linp += linesz)
|
for (linp += linesz; linp < linpend; linp += linesz)
|
||||||
{
|
{
|
||||||
bfd_coff_swap_lineno_in (input_bfd, linp, &lin);
|
bfd_coff_swap_lineno_in (input_bfd, linp, &lin);
|
||||||
lin.l_addr.l_paddr += offset;
|
lin.l_addr.l_paddr += offset;
|
||||||
|
Reference in New Issue
Block a user