+2005-12-02 Ken Raeburn <raeburn@mit.edu>
+
+ * kdb5.c (kdb_load_library): Make dbpath_names static, to keep
+ Solaris native compiler happier.
+
2005-10-11 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (SHLIB_EXPLIBS): Include support library. Don't
int ndx;
void *vftabl_addr;
char *err_str = NULL;
- const char *const dbpath_names[] = {
+ /* N.B.: If this is "const" but not "static", the Solaris 10
+ native compiler has trouble building the library because of
+ absolute relocations needed in read-only section ".rodata".
+ When it's static, it goes into ".picdata", which is
+ read-write. */
+ static const char *const dbpath_names[] = {
KDB_MODULE_SECTION, "db_module_dir", NULL,
};
char **profpath = NULL;