aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2003-09-26 23:02:34 +0000
committerJason Thorpe <thorpej@netbsd.org>2003-09-26 23:02:34 +0000
commit530556a951f5feea7e2101f7cd5b51255c727ac0 (patch)
treed4ab1717b98cd45c0522d6c3f039f89a2e7b9b80 /gas
parent54c847345db758fa2d2f618b9202394866a53b50 (diff)
downloadgdb-530556a951f5feea7e2101f7cd5b51255c727ac0.zip
gdb-530556a951f5feea7e2101f7cd5b51255c727ac0.tar.gz
gdb-530556a951f5feea7e2101f7cd5b51255c727ac0.tar.bz2
2003-09-26 Matt Thomas <matt@3am-software.com>
* config/tc-vax.c (md_shortopts): Fix a typo. Remove 'K'. (OPTION_PIC): Define. (md_longopts): Add "pic" option. (md_parse_option): Change 'K' to OPTION_PIC.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/tc-vax.c8
2 files changed, 13 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 56c6fae..47c820c 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2003-09-26 Matt Thomas <matt@3am-software.com>
+
+ * config/tc-vax.c (md_shortopts): Fix a typo. Remove 'K'.
+ (OPTION_PIC): Define.
+ (md_longopts): Add "pic" option.
+ (md_parse_option): Change 'K' to OPTION_PIC.
+
2003-09-23 Alan Modra <alan@modra.org>
* config/obj-elf.c (obj_elf_change_section): Adjust for
diff --git a/gas/config/tc-vax.c b/gas/config/tc-vax.c
index 2425663..2b336b4 100644
--- a/gas/config/tc-vax.c
+++ b/gas/config/tc-vax.c
@@ -3256,12 +3256,16 @@ md_create_long_jump (ptr, from_addr, to_addr, frag, to_symbol)
#ifdef OBJ_VMS
const char *md_shortopts = "d:STt:V+1h:Hv::";
-#elif defined(OBJ_ELC)
+#elif defined(OBJ_ELF)
const char *md_shortopts = "d:STt:VkK";
#else
const char *md_shortopts = "d:STt:V";
#endif
struct option md_longopts[] = {
+#ifdef OBJ_ELF
+#define OPTION_PIC (OPTION_MD_BASE)
+ {"pic", no_argument, NULL, OPTION_PIC},
+#endif
{NULL, no_argument, NULL, 0}
};
size_t md_longopts_size = sizeof (md_longopts);
@@ -3325,7 +3329,7 @@ md_parse_option (c, arg)
#endif
#ifdef OBJ_ELF
- case 'K':
+ case OPTION_PIC:
case 'k':
flag_want_pic = 1;
break; /* -pic, Position Independent Code */