]>
Commit | Line | Data |
---|---|---|
50f0e64b PS |
1 | --- binutils-2.17.50.0.3/bfd/opncls.c.orig 2006-07-15 20:23:49.000000000 +0200 |
2 | +++ binutils-2.17.50.0.3/bfd/opncls.c 2006-09-02 10:21:33.212591250 +0200 | |
3 | @@ -1215,6 +1215,10 @@ | |
4 | return NULL; | |
5 | } | |
6 | ||
7 | + /* PLD: check the possible absolute debuginfo path (e.g. /usr/lib/debug/... */ | |
8 | + if (separate_debug_file_exists (basename, crc32)) | |
9 | + return basename; | |
10 | + | |
11 | dir = strdup (abfd->filename); | |
12 | if (dir == NULL) | |
13 | { | |
14 | @@ -1353,9 +1357,6 @@ | |
15 | return NULL; | |
16 | } | |
17 | ||
18 | - /* Strip off any path components in filename. */ | |
19 | - filename = lbasename (filename); | |
20 | - | |
21 | sect = bfd_get_section_by_name (abfd, GNU_DEBUGLINK); | |
22 | if (sect) | |
23 | { | |
24 | @@ -1439,10 +1440,6 @@ | |
25 | crc32 = bfd_calc_gnu_debuglink_crc32 (crc32, buffer, count); | |
26 | fclose (handle); | |
27 | ||
28 | - /* Strip off any path components in filename, | |
29 | - now that we no longer need them. */ | |
30 | - filename = lbasename (filename); | |
31 | - | |
32 | debuglink_size = strlen (filename) + 1; | |
33 | debuglink_size += 3; | |
34 | debuglink_size &= ~3; |